DEV Community

浪浪浪
浪浪浪

Posted on

[React Three] fragmentShader extension error

I used react to write the demo of this threejs. I encountered this problem, which has troubled me for a long time. Who can help me?


THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Program Info Log: Fragment shader is not compiled.


FRAGMENT

ERROR: 0:72: '
' : extension directive must occur before any non-preprocessor tokens in ESSL3

Enter fullscreen mode Exit fullscreen mode

A small implementation of shaders on top of a highly subdivided icosahedron from ThreeJS.

Top comments (0)