Run GLSL Code
- Make sure you are in GLSL(GPU) mode;
- Then edit the World rule;
- You will see there is already some code in the showed up panel;
default.shader
void main(){
outColor = getColor(uv);
}
This code means that send the input pixels to the output.
- You can change the
getColor(uv)
tovec4(uv,0.0,1.0)
for geting a beautiful uv color pattern;
uvcolor.shader
void main(){
outColor = vec4(uv,0.0,1.0);
}
- Then, press the "Ok" button.
- If everything is right, you will get something in the scene like this: