Back

Shaders

In this tutorial we will explore how we can write our own shaders code using GLSL inside of nunuStudio. Shader materials can be added to the project, there are two types of shader materials the ShaderMaterial and RawShaderMaterial.

ShaderMaterial should suit most use cases it is directly based on the three.js shader material and already gives access to the default attributes available in the renderer. RawShaderMaterial gives you more control over but requires a better undestending of the engine underlines.

Under work!