fragmentShaderForLighting method
Selects this material's fragment shader for the frame lighting state.
The radiance-layout variant wins over the shadow one: a shadow variant in the wrong layout would be handed a texture its sampler cannot read, while dropping the no-shadow variant only costs dead shadow code.
Implementation
@override
gpu.Shader fragmentShaderForLighting(Lighting lighting) =>
_prepared.fragmentShaderForLighting(lighting);