Disabling tilemap layers in render script

I have a tilemap with two layers: walls and decorations. This tilemap is rendered twice - once as a tilemap and once to a render target that turns it into shadows using a shader. I would like for only the tiles in the walls layer to cast shadows. So:
Is it possible to disable drawing of a tilemap layer for some draw operations in the render script?

1 Like

No, you can’t currently address individual layers. However, there is a trick you can try. I haven’t tried this myself, but you might be able achieve what you want by:

  1. Separate the layers by Z.
  2. Adjust the projection and cull out the layer you want to render by setting the “near” and “far” values for the matrix so only that layer is within the bounds.

That’s a really nice work around that probably would work