Welcome to mirror list, hosted at ThFree Co, Russian Federation.

overlay_face_orientation_frag.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ed35b4a421fbd07aba0402cafc95f0e8746cfdd (plain)
1
2
3
4
5
6
7
8
9
uniform vec3 color_towards = vec3(0.0, 0.0, 1.0);
uniform vec3 color_outwards = vec3(1.0, 0.0, 0.0);

out vec4 fragColor;

void main()
{
  fragColor = vec4(gl_FrontFacing ? color_towards : color_outwards, 0.7);
}