Merge pull request #80911 from BastiaanOlij/fix_decal_mask_mobile

Fix missing decal mask in mobile renderer
This commit is contained in:
Yuri Sizov 2023-08-25 14:58:52 +02:00
commit cae4319e0a

View file

@ -899,6 +899,10 @@ void main() {
break;
}
if (!bool(decals.data[decal_index].mask & draw_call.layer_mask)) {
continue; //not masked
}
vec3 uv_local = (decals.data[decal_index].xform * vec4(vertex, 1.0)).xyz;
if (any(lessThan(uv_local, vec3(0.0, -1.0, 0.0))) || any(greaterThan(uv_local, vec3(1.0)))) {
continue; //out of decal