Page 1 of 1

Casting and non casting lights don't match attenuation

Posted: Sat Apr 18, 2020 5:52 pm
by xrgo
Hello! I have some spotlights that I want to make them cast shadows just sometimes (quality configuration) but I need to look the same in both cases, when enabling shadows they are a lot brighter
I found it to be because of hlms_forward_fade_attenuation_range I tried to added it to the non forward spotlight code but there's no light0Buf.lights[@n].attenuation.w

should that w be passed? or there's another way to calculate a fade_attenuation_range?
thanks!

Re: Casting and non casting lights don't match attenuation

Posted: Mon May 04, 2020 8:43 am
by TaaTT4
Really? I've never noticed it! :o
How much difference are we talking about? Do you have a screenshot?
I have scenarios when I have to turn on and off the shadow casting of spotlights (eg. just the lights of the "current car" cast shadows) and I'd like to not see differences (at least not too much).