Run GLSL Code


  • Make sure you are in GLSL(GPU) mode;
    GLSL 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) to vec4(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:
    UV color pattern

results matching ""

    No results matching ""