Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlaceholderBehavior's sprite doe snot work with Light Only mode #184

Open
leogeier opened this issue Oct 25, 2023 · 0 comments
Open

PlaceholderBehavior's sprite doe snot work with Light Only mode #184

leogeier opened this issue Oct 25, 2023 · 0 comments

Comments

@leogeier
Copy link
Collaborator

To reproduce:

  1. Create a PlaceholderBehavior using a sprite
  2. Add a CanvasItemMaterial to it, set Light Mode to Light Only
  3. Add a PointLight to the scene

The PlaceholderBehavior will be visible even if it is outside the PointLight.

A simple way to fix this is to add the following line to the sprite outline shader (res://addons/pronto/shader/outline.gdshader): render_mode blend_mix,light_only;. However, this would necessitate multiple versions of the shader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant