Skip to content

Commit

Permalink
Remove unused Normal attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thr3343 committed Oct 6, 2024
1 parent 492b8ea commit 4d5f6ac
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ layout(binding = 1) uniform UBO{

layout(location = 0) in float vertexDistance;
layout(location = 1) in vec4 vertexColor;
layout(location = 2) in vec4 normal;

layout(location = 0) out vec4 fragColor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ layout(binding = 0) uniform UniformBufferObject {

layout(location = 0) out float vertexDistance;
layout(location = 1) out vec4 vertexColor;
layout(location = 2) out vec4 normal;

void main() {
gl_Position = MVP * vec4(Position, 1.0);

vertexDistance = fog_distance(Position.xyz, 0);
vertexColor = Color;
normal = MVP * vec4(Normal, 0.0);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
layout(location = 0) in vec3 Position;
layout(location = 1) in vec4 Color;
layout(location = 2) in vec2 UV0;
layout(location = 5) in vec3 Normal;

layout(binding = 0) uniform UniformBufferObject {
mat4 MVP;
Expand Down

0 comments on commit 4d5f6ac

Please sign in to comment.