applyToShader

Applies the current transformation and rendering context to the specified shader.

The method sets various uniform values in the shader based on the transformation matrices and other properties of the DrawContext. It also manages matrix normalizations and the optional use of context blocks for shared state across shaders.

Parameters

shader

The shader to which the uniforms and context should be applied.