shader_enable_corner_id


语法:

shader_enable_corner_id(enable);


参数 描述
enable Enable (true) or disable (false) this function.


Returns:

N/A(无返回值)


描述

With this function you can set a global state for all shaders being used where, when enabled, the shader "steals" 2 bits from the input colour values. The first is from the lower bit of the red colour value, and the second is from the lower bit of the blue colour value. These values can get then be recovered in the shader to work out which vertex your dealing with (ie: which corner).

重要!该函数在试用版(Trial License)产品中可用。


例如:

shader_enable_corner_id(true);

The above code will enable the use of colour bits for the corner id for all shaders.