Skip to content

Commit c6ef09c

Browse files
committed
wip: more uint typing fixes
1 parent ec01ff7 commit c6ef09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/renderer/glsl_source/lighttile_fp.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ uniform sampler2D u_DepthMap;
5959
uniform int u_lightLayer;
6060
uniform vec3 u_zFar;
6161

62-
const int lightsPerLayer = 16;
62+
const uint lightsPerLayer = 16u;
6363

6464
#define idxs_t uvec4
6565

@@ -114,7 +114,7 @@ void main() {
114114

115115
idxs_t idxs = uvec4( 0, 0, 0, 0 );
116116

117-
uint lightCount = 0;
117+
uint lightCount = 0u;
118118

119119
/* Dynamic lights are put into 4 layers of a 3D texture. Since checking if we already added some light is infeasible,
120120
only process 1 / 4 of different lights for each layer, extra lights going into the last layer. This can fail to add some lights

0 commit comments

Comments
 (0)