Varying normals

This commit is contained in:
Joshua Barretto 2022-05-09 01:25:51 +01:00
parent ac0e7a7724
commit 7cce892cff
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
#include <globals.glsl> #include <globals.glsl>
layout(location = 0) in vec3 f_pos; layout(location = 0) in vec3 f_pos;
layout(location = 1) flat in vec3 f_norm; layout(location = 1) in vec3 f_norm;
layout(location = 2) in vec4 f_col; layout(location = 2) in vec4 f_col;
layout(location = 0) out vec4 tgt_color; layout(location = 0) out vec4 tgt_color;

View File

@ -33,7 +33,7 @@ void main() {
f_pos.z -= pull_down; f_pos.z -= pull_down;
f_norm = v_norm; f_norm = v_norm;
f_col = vec4(vec3(0, 0.025, 0.015), 1.0);//vec4(v_col, 1.0); f_col = vec4(vec3(0, 0.035, 0.025), 1.0);//vec4(v_col, 1.0);
gl_Position = gl_Position =
all_mat * all_mat *