import { Texture } from '@babylonjs/core/Materials/Textures/texture.js' ; import React from 'react' ; interface SkyboxProps { rootUrl : string ; size ? : number ; name ? : string ; } const Skybox = ( props ) => ( < box name = { props . name ? `skybox-${ props . name }` : 'skybox' } size = { props . size ?? 100 } infiniteDistance = { true } renderingGroupId = { 0 } > < standardMaterial name = { props . name ? `skybox-material-${ props . name }` : 'skybox-material' } backFaceCulling = { false } disableLighting = { true } > < cubeTexture key = { `cube-texture-${ props . rootUrl }` } rootUrl = { props . rootUrl } coordinatesMode = { Texture . SKYBOX_MODE } assignTo = { 'reflectionTexture' } / > < /standardMaterial> < /box>); export default Skybox ;