Open ItsCubeTime opened 3 years ago
I'm on windows > my blender 2.83.X and 2.9X won't open your file and crash blender everytime. Can you try and delete all unnecessary assets then purge your file and re save.
what is your blender version and platform?
Just a guess: this could be caused by optimizations of the shader compiler which might transform uniform mat4 LWVPSpot[1]
from an array to a single matrix (uniform mat4 LWVPSpot
) because the array only consists of one element. This would then lead to the error complaining that LWVPSpot
is not an array. It would be a bit dumb but sounds like a plausible explanation to me.
I think this error occurs because you have or had both spot and area lights in your project and the exporter is picking them and adds both _LTC
and _Spot
flags for the shader parser when exporting. It then results in a situation where no uniform LWVPSpot
is defined because there is no case where both type of lights exists at the same time in the conditionals, since it seems they share variable names for some reason.
https://github.com/armory3d/armory/blob/3b72fff76d98710b25dbd8aa044dd4c4fd2de20a/Shaders/std/light.glsl#L26-L33 https://github.com/armory3d/armory/blob/3b72fff76d98710b25dbd8aa044dd4c4fd2de20a/Shaders/std/light.glsl#L60-L79
Ive played around quite a bit with the lights in the scene, seems there are some incompatability issues.
The blend file: untitled (2).zip