diff options
Diffstat (limited to 'res/shaders/simple_shader.vert')
-rwxr-xr-x | res/shaders/simple_shader.vert | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert index 04b603e..30e7a79 100755 --- a/res/shaders/simple_shader.vert +++ b/res/shaders/simple_shader.vert @@ -1,9 +1,8 @@ #version 450 layout (location = 0) in vec3 position; -layout (location = 1) in vec3 color; -layout (location = 2) in vec3 normal; -layout (location = 3) in vec2 uv; +layout (location = 1) in vec3 normal; +layout (location = 2) in vec2 uv; layout (location = 0) out vec3 fragColor; layout (location = 1) out vec2 fragUv; @@ -32,6 +31,6 @@ void main() { float lightIntensity = AMBIENT + max(dot(normalWorldSpace, ubo.directionToLight), 0); - fragColor = lightIntensity * vec3(1/position.y,position.y,clamp(sin(position.x - position.z), 0, 1)); + fragColor = lightIntensity * vec3(1); fragUv = uv; }
\ No newline at end of file |