Skip to content

Commit 537bb8f

Browse files
committed
renderer: properly cast bitwise extraction as float
1 parent f4f12f2 commit 537bb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/glsl_source/common.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ vec4 ColorModulateToColor( const in uint colorMod, const in float lightFactor )
6666
}
6767

6868
float ColorModulateToLightFactor( const in uint colorMod ) {
69-
return ( colorMod >> 6 ) & 0xF;
69+
return float( ( colorMod >> 6 ) & 0xF );
7070
}
7171

7272
// This is used to skip vertex colours if the colorMod doesn't need them

0 commit comments

Comments
 (0)