diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-30 20:36:44 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-31 06:43:49 +0200 |
| commit | 10bd169bd4e1416c941faa2d5bc6a5be2e2fbfb8 (patch) | |
| tree | 4c3897c9d4a85858cba9b99dd32ccd9326e4a28a /shaders/lightmap.vert | |
| parent | eda27f03e5115f7d9b4d2f2061e03e0bbe517370 (diff) | |
shaders/lightmap: use uniform blocks
Diffstat (limited to 'shaders/lightmap.vert')
| -rw-r--r-- | shaders/lightmap.vert | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/shaders/lightmap.vert b/shaders/lightmap.vert index 2ed69f8b..1a8a39f1 100644 --- a/shaders/lightmap.vert +++ b/shaders/lightmap.vert @@ -1,16 +1,17 @@ precision mediump float; layout (location = 2) uniform sampler2D sampler0; -layout (location = 3) uniform vec4 light_color; -layout (location = 4) uniform vec2 scale; -layout (location = 5) uniform vec2 center_fragcoord; -layout (location = 6) uniform vec2 center_clip; -layout (location = 7) uniform float range; -layout (location = 8) uniform uint mode; -layout (location = 9) uniform uint falloff; +layout (location = 3) uniform uint mode; -//layout (location = 0) out vec2 frag_texcoords; -//layout (location = 1) flat out vec2 frag_light_coord; +layout (std140) +uniform Lightmap { + vec4 light_color; + vec2 scale; + vec2 center_fragcoord; + vec2 center_clip; + float range; + uint falloff; +}; layout (location = 0) in vec3 position; |
