gl_FragColor to out in shader material

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.

1 Like

I’m sorry for no live example.
Should i use raw shader material then?

ShaderMaterial is fine. Do it like so:

1 Like

Thank you!