Registers a callback to change the final color of each pixel after all lighting and mixing is done in the fragment shader. This hook can be used inside baseColorShader().modify() and similar shader modify() calls to adjust the color before it appears on the screen. The callback receives a four component vector representing red, green, blue, and alpha.
Return a new color array to change the output color.
This hook is available in:
Examples
Syntax
getFinalColor(callback)
Parameters
Related References
combineColors
Registers a callback to customize how color components are combined in the fragment shader.
getCameraInputs
Registers a callback to adjust vertex properties after the model has been transformed by the camera, but before projection, in the vertex shader.
getColor
Registers a callback to set the final color for each pixel in a filter shader.
getFinalColor
Registers a callback to change the final color of each pixel after all lighting and mixing is done in the fragment shader.