Rev Author Line No. Line
23 ovan 1 #version 430 core
2  
3 in vec2 uv;
4 in vec3 N;
5 in vec4 P;
6 in vec4 C;
7  
8 uniform sampler2D base;
9  
10 out vec4 color;
11 out vec4 normal;
12 out vec4 position;
13  
14 void main()
15 {
16 float render = 0.45;
17 vec3 face = cross(dFdx(position), dFdy(position));
18  
19 float difference = length(position-face);
20 difference = pow(difference + 1.0, 3.0) - 2.6;
21  
22 color = vec4(difference, 0.0, 0.0, 1.0);
23 }