Closed Sai-Smaran closed 4 months ago
OK I figured it out now:
import { loadCubeTextureAsync } from "expo-three";
scene.background = await loadCubeTextureAsync({
assetForDirection: {
px: require("./assets/skybox/posx.jpg"),
nx: require("./assets/skybox/negx.jpg"),
py: require("./assets/skybox/posy.jpg"),
ny: require("./assets/skybox/negy.jpg"),
pz: require("./assets/skybox/posz.jpg"),
nz: require("./assets/skybox/negz.jpg"),
},
});
Weird why this isn't documented yet :/
Skyboxes don't seem to work on android and render a white void instead of rendering the skybox.
Expected result(on web):
Actual outcome(android):