14 lines
198 B
GLSL
14 lines
198 B
GLSL
|
#version 330
|
|||
|
|
|||
|
in vec3 normal;
|
|||
|
in vec3 color;
|
|||
|
in vec3 position;
|
|||
|
|
|||
|
out vec4 FragColor;
|
|||
|
|
|||
|
void main()
|
|||
|
{
|
|||
|
vec3 displayNormal = (normal.xyz * 0.5) + 0.5;
|
|||
|
FragColor = vec4(displayNormal.rgb,1);
|
|||
|
}
|