mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 03:52:48 -05:00
15 lines
250 B
GLSL
15 lines
250 B
GLSL
#version 430
|
|
|
|
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;
|
|
}
|