Skip to content

Commit

Permalink
drivers/glrend/brender.vert: move attributes beneath uniforms
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed May 7, 2024
1 parent d20e0f4 commit 72d74ff
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drivers/glrend/brender.vert.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,6 @@
#define DEBUG_DISABLE_LIGHT_SPECULAR 0
#define ENABLE_PSX_SIMULATION 0

in vec3 aPosition;
in vec2 aUV;
in vec3 aNormal;
in vec4 aColour;

out vec4 position;
out vec4 normal;
out vec2 uv;
out vec4 colour;

out vec3 rawPosition;
out vec3 rawNormal;

bool directLightExists;

struct br_light
{
vec4 position; /* (X, Y, Z, 1) */
Expand Down Expand Up @@ -66,6 +51,21 @@ layout(std140) uniform br_model_state
bool disable_colour_key;
};

in vec3 aPosition;
in vec2 aUV;
in vec3 aNormal;
in vec4 aColour;

out vec4 position;
out vec4 normal;
out vec2 uv;
out vec4 colour;

out vec3 rawPosition;
out vec3 rawNormal;

bool directLightExists;

#define SPECULAR_DOT() \
{ \
float rd = dot(dirn_norm, n) * 2; \
Expand Down

0 comments on commit 72d74ff

Please sign in to comment.