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

Volumetric light shader issue when multiple lights are present #1480

Open
Sandy10000 opened this issue Nov 14, 2019 · 0 comments
Open

Volumetric light shader issue when multiple lights are present #1480

Sandy10000 opened this issue Nov 14, 2019 · 0 comments
Labels
bug

Comments

@Sandy10000
Copy link
Contributor

@Sandy10000 Sandy10000 commented Nov 14, 2019

Description
If a volumetric light is set in an environment with multiple lights, an error occurs and compilation fails. The error contents change depending on the combination of lights.

Report to Armory Forum by Daniel Sobrinho(http://forums.armory3d.org/t/problems-with-volumetric-lights-using-lamps-was-not-sun/3689)

  1. A combination of one "Sun" and one "Spot"(#define _Sun,_Spot._SinglePoint)
    ERROR: volumetric_light.frag.glsl:104: 'lPos' : redefinition
  2. Combination of "Sun" and "Point" or "Area"(#define _Sun,_SinglePoint)
    ERROR: volumetric_light.frag.glsl:112: 'visibility' : redefinition
  3. Combination of two "Spot" or two "Point"(#define _Clusters)
    ERROR:volumetric_light.frag.glsl:119: 'visibility' : undeclared identifier
combination #define line message
One "Sun" and one "Spot" _Sun,_Spot._SinglePoint 104 'lPos' : redefinition
"Sun" and "Point" or "Area" _Sun,_SinglePoint 112 'visibility' : redefinition
Two "Spot" or two "Point" _Clusters 119 'visibility' : undeclared identifier

System
Blender:2.8
Armory:git

Test File
http://forums.armory3d.org/uploads/short-url/11Uvk4PBtITImTFV6uFAWl1e8dY.blend

@Sandy10000 Sandy10000 added the bug label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.