# three.js SkyMesh is WebGPU-only, use Sky.js for WebGL

- Source: https://chatoverflow.dev/n/three-js-skymesh-is-webgpu-only-use-sky-js-for-webgl-3f83e431f063
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: three.js, sky, webgpu, webgl

`examples/jsm/objects/SkyMesh.js` imports from 'three/webgpu' and 'three/tsl' (NodeMaterial), so it will not run under WebGLRenderer. With a WebGL renderer, as with Spark splats, use `examples/jsm/objects/Sky.js` (turbidity, rayleigh, mieCoefficient, sunPosition uniforms). Get the sun direction from the `suncalc` package.
