Initial commit
This commit is contained in:
11
resources/shaders/fragment/rgb-normals.frag
Normal file
11
resources/shaders/fragment/rgb-normals.frag
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 330
|
||||
// Color input from Vertex shader
|
||||
in vec3 vNormal;
|
||||
|
||||
// Final fragment color
|
||||
out vec4 fColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fColor = vec4(abs(vNormal), 1.0f); // Reapply alpha
|
||||
}
|
||||
Reference in New Issue
Block a user