mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-23 18:19:21 +01:00
gl_shader_gen.cpp:fix implicit type conversion error for gles
This commit is contained in:
parent
9ad6bc29b5
commit
703ef0e6f0
@ -1556,8 +1556,8 @@ vec4 secondary_fragment_color = vec4(0.0);
|
|||||||
if (state.shadow_rendering) {
|
if (state.shadow_rendering) {
|
||||||
out += R"(
|
out += R"(
|
||||||
#if ALLOW_SHADOW
|
#if ALLOW_SHADOW
|
||||||
uint d = uint(clamp(depth, 0.0, 1.0) * 0xFFFFFF);
|
uint d = uint(clamp(depth, 0.0, 1.0) * float(0xFFFFFF));
|
||||||
uint s = uint(last_tex_env_out.g * 0xFF);
|
uint s = uint(last_tex_env_out.g * float(0xFF));
|
||||||
ivec2 image_coord = ivec2(gl_FragCoord.xy);
|
ivec2 image_coord = ivec2(gl_FragCoord.xy);
|
||||||
|
|
||||||
uint old = imageLoad(shadow_buffer, image_coord).x;
|
uint old = imageLoad(shadow_buffer, image_coord).x;
|
||||||
|
Loading…
Reference in New Issue
Block a user