fateriddle 3 Posted October 8, 2018 Report Share Posted October 8, 2018 To build a skybox, we need 6 images for 6 sides of the box. In babylonjs, the code is skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("textures/skybox", scene); which will load textures/skybox_px.jpg, textures/skybox_py.jpg, and so on. But in React, or create-react-app, we can only import an image using syntax like: import image1 from './textures/skybox_px.jpg So is there a way to do the skybox demo using react? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.