0 votes

Hello there,

So i have a 'night' level in which I've added a light2D node with Mode Sub to make the level dark. Its Item Cull Mask is set to Layer 1.

Now I instanced my player scene into the level the players' Light Mask set to no Layer.

Expected behaviour: Player not affected by the level's Light2D, alas everything in the scene is black including the player who is on a different Light mask.

Can anyone point out where I go wrong? Or how I exclude my player from being affected by the Levels' Light2D?

What I tried:

  • set the players' Light Mask to a different layer. set the players'
  • Material to New CanvasItemMaterial with Light Mode Unshaded. set the
  • players' node below or above the Light2D Node.

Level Hierarchy :

Player Light mask setting
Light mask
Light2D settings:

Godot version 3.3.1.stable
in Engine by (65 points)

1 Answer

0 votes
Best answer

Alright I found a fix. I simply set up my lighting in my level and the re-instanced my player scene. That seems to fix the issue. maybe it's a bug.

by (65 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.