mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Varying normals
This commit is contained in:
parent
ac0e7a7724
commit
7cce892cff
@ -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;
|
||||||
|
@ -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 *
|
||||||
|
Loading…
Reference in New Issue
Block a user