How can i custom out color in fragment shader?
I got some errors in this code

If you write GLSL 3 shader code, you have to set the glslVersion
property of the (raw) shader material to THREE.GLSL3
.
Also consider to share a complete live example so itβs possible to debug the issue in more detail.
Iβm sorry for no live example.
https://jsfiddle.net/bemuse/ahun0jgk/5/
Should i use raw shader material then?
ShaderMaterial
is fine. Do it like so: https://jsfiddle.net/79dfb1r0/
Thank you!