finalcolor Library Method
Signature: sc.finalcolor ()
Class: taccglShaderConfig Class
This is initially an empty method that you can override to customize the fragment shader.
The code can modify the variable col which contains the color of the current fragment
(as vec3) or a which contains its opacity. The shader already did all required calculations
including blending of both texture canvases and the directly specified color and
the lighting calculations.
Normally you should not assign a=0.0 here but in color.
Here it will produce a transparent but still present fragment which can cause problems with the depth buffer.
WebGL™ is a trademark of the Khronos Group Inc.
|