diff options
Diffstat (limited to 'glsl')
-rw-r--r-- | glsl/shader.vert | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/glsl/shader.vert b/glsl/shader.vert index bc89a8c..50dcec5 100644 --- a/glsl/shader.vert +++ b/glsl/shader.vert @@ -3,8 +3,7 @@ layout(location = 0) in vec3 in_position; layout(location = 1) in vec3 in_normal; -layout(location = 2) in vec3 in_color; -layout(location = 3) in vec2 in_texture_coord; +layout(location = 2) in vec2 in_texture_coord; layout(location = 0) out DataTransferObject @@ -32,8 +31,7 @@ main() gl_Position = ubo_view_projection.proj * ubo_view_projection.view * ubo_model_instance.model[gl_InstanceIndex] * vec4(in_position, 1.0); - out_dto.frag_color = vec4(in_color.r, in_color.g, in_color.b, 1.0) * - ubo_view_projection.ambient_color; + out_dto.frag_color = ubo_view_projection.ambient_color; out_dto.frag_texture_coord = in_texture_coord; out_dto.normal = mat3(ubo_model_instance.model[gl_InstanceIndex]) * in_normal; |