Texture_set_border_ext - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Sets the border color of the texture bound to first sampler stage used when blending to non existant pixels. For instance if you have are rendering a billboard with a transparent cutout, this will change the color the pixels at the edges blend with.

Parameters

Parameter Data Type Description
stage int index of the sampler stage to change
r integer red color component
g integer blue color component
b integer green color component
a integer alpha color component

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting the border color to half opaque pure red
texture_set_border_ext(0, 255, 0, 0, 0.5);

NOTOC