setFragmentShaderName method
Assigns the fragment shader by name from baseShaderLibrary.
The shader is resolved lazily on first use and then cached, so a material can be constructed before Scene.initializeStaticResources has loaded the base shader bundle. The shader is only needed at render time, which the engine already defers until the bundle is ready.
cubeName is the twin built for the cubemap radiance layout, needed by
any shader that samples the environment (see radianceCubeFragmentShader).
Implementation
void setFragmentShaderName(String name, {String? cubeName}) {
_fragmentShaderName = name;
_fragmentShader = null;
_radianceCubeFragmentShaderName = cubeName;
_radianceCubeFragmentShader = null;
}