bind method
Binds the fragment's uniform blocks, textures, and (when useEnvironment) the environment IBL samplers. Called by the engine during the background draw; not part of the app-facing API.
Implementation
@override
void bind(
gpu.RenderPass pass,
gpu.HostBuffer transientsBuffer,
EnvironmentMap environment,
) {
setUniformBlockFromFloats('GradientSkyInfo', <double>[
...zenithColor.storage,
1.0,
...horizonColor.storage,
1.0,
...groundColor.storage,
1.0,
...sunDirection.storage,
sunSharpness,
...sunColor.storage,
1.0,
]);
super.bind(pass, transientsBuffer, environment);
}