diff options
Diffstat (limited to 'res/shaders/simple_shader.vert')
-rwxr-xr-x | res/shaders/simple_shader.vert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert index 3887c4a..33504ff 100755 --- a/res/shaders/simple_shader.vert +++ b/res/shaders/simple_shader.vert @@ -5,7 +5,7 @@ layout (location = 1) in vec3 normal; layout (location = 2) in vec2 uv; layout (location = 3) in int tex; -layout (location = 0) out vec3 fragColor; +layout (location = 0) out float fragLight; layout (location = 1) out vec2 fragUv; layout (location = 2) out int fragTex; @@ -28,7 +28,7 @@ void main() { float lightIntensity = AMBIENT + max(dot(normalWorldSpace, ubo.directionToLight), 0); - fragColor = lightIntensity * vec3(1); + fragLight = lightIntensity / 5; fragUv = uv; fragTex = tex; }
\ No newline at end of file |