Hi @robmilton, here’s a sandcastle examplle that works in WebGL2.
And here’s a modified sandcastle that will work in CesiumJS 1.107 when createWorldTerrain
and Model.fromGltf
are removed for their async alternatives.
It required a few changes:
- Renamed
texture2D
totexture
- Renamed
texture
(the uniform) tonoiseTexture
(since the wordtexture
is now reserved) - Use
PixelFormat.RED
instead ofPixelFormat.LUMINANCE