Casting and non casting lights don't match attenuation

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 169

Casting and non casting lights don't match attenuation

Post 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!
User avatar
TaaTT4
OGRE Contributor
OGRE Contributor
Posts: 267
Joined: Wed Apr 23, 2014 3:49 pm
Location: Bologna, Italy
x 75

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

Post 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).

Senior programmer at 505 Games; former senior engine programmer at Sandbox Games
Worked on: Racecraft EsportRacecraft Coin-Op, Victory: The Age of Racing