Skip to content

Vulkan Mobile: decal cull layers do not sync to changes on visual layers of meshes. #73706

@jcarlosrc

Description

@jcarlosrc

Godot version

4.0 RC3

System information

Ubuntu 22.04

Issue description

If we set a cull layer to a decal, and update meshes to different layers, these changes are not updated to the decal. We need to "reset" the decal cull layer by clearing all its cull layers and assign it again in the editor for the changes to take effect. In the videos, a decal with a cull layer = 1 shows in a mesh instance at layer 3. We need to reset decal layers for the culling to work.

screen_recorder-2023-02-21_15.28.42.mp4
screen_recorder-2023-02-21_15.35.38.mp4

Steps to reproduce

Set a decal and some meshes. Change the meshes layers. This change will not show in the editor nor in the game. Now reset decal layer by empty its cull layer and then choosing a new one. Now changes are visible and decal will cull properly.

Minimal reproduction project

mobile_decal_cull_layer_bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions