shader tweaks

This commit is contained in:
2020-03-10 18:45:12 -04:00
parent 63692ced17
commit fd51590a8c
4 changed files with 23 additions and 3 deletions

View File

@@ -1,9 +1,14 @@
#version 430
in vec4 col;
layout(location=1) in vec4 col;
layout(location=2) in vec3 normal;
out vec4 color;
void main() {
float bright = dot(normal, normalize(vec3(-0.6, 1, 2)));
bright = .6 + .3 * bright;
color = col;
color.xyz *= bright;
}