You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Fix missing decal mask in mobile renderer
(cherry picked from commit 8449331f13)
This commit is contained in:
committed by
Yuri Sizov
parent
1c0ffdaa87
commit
82846a7e6d
@@ -895,6 +895,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
|
||||
|
||||
Reference in New Issue
Block a user