start
This commit is contained in:
13
normal_fragment.glsl
Normal file
13
normal_fragment.glsl
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 330 core
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec3 FragPos;
|
||||
in vec3 Normal;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Отображение нормалей как цветов
|
||||
vec3 normalColor = normalize(Normal) * 0.5 + 0.5;
|
||||
FragColor = vec4(normalColor, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user