You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #102399 from clayjohn/cull-mask-overhaul
Overhaul the cull mask internals for Lights, Decals, and Particle Colliders
This commit is contained in:
@@ -1120,9 +1120,6 @@ void main() {
|
||||
uvec2 decal_indices = instances.data[draw_call.instance_index].decals;
|
||||
for (uint i = 0; i < sc_decals(); i++) {
|
||||
uint decal_index = (i > 3) ? ((decal_indices.y >> ((i - 4) * 8)) & 0xFF) : ((decal_indices.x >> (i * 8)) & 0xFF);
|
||||
if (!bool(decals.data[decal_index].mask & instances.data[draw_call.instance_index].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)))) {
|
||||
|
||||
Reference in New Issue
Block a user