Closed xtronoid closed 3 years ago
In the example, the default parameters of uniforms are inappropriate, especially sunPosition cannot be 0, 0, 0.
The canvas size are not passed to the Renderer. In the example, the width and height are set after the canvas is passed to the renderer, so it needs to be executed again:
worldRenderer.setSize(width, height);
Damm! you are genius, i was dumb on this one! Now im master ninja! thanks bro!!! I simplified too much and forgot about inclination etc... haha :D
this bug is called "dumby night" lol
Hi! how are you!
I always got your code working while in some situations, maybe some kind of transpiling i dunno! Then lately i moved into another kind of transpiling ambient etc... then the skyshader is black the funny part -> when i try to replicate in a html browser very simple and declarative thing, i also get black! Im asking you because im pretty sure you will put some light on this!