getBackground method
Implementation
dynamic getBackground(Object3D? scene ) {
dynamic background = scene is Scene? scene.background : null;
if ( background != null && background is Texture ) {
final usePMREM = (scene as Scene).backgroundBlurriness > 0; // use PMREM if the user wants to blur the background
background = usePMREM ? cubeuvmaps.get(background) : cubemaps.get(background);
}
return background;
}