Gamestudio Links
Zorro Links
Newest Posts
Loging off automatically ?
by old_bill. 03/30/20 22:07
Need help to log in my broker into ZORRO
by buttcorgi. 03/30/20 19:52
textureLod into HLSL
by 3run. 03/30/20 18:01
Running banchmark test with FxPro on MT4
by Cobus. 03/30/20 14:55
Read Z12.fac while running Z2
by AndrewAMD. 03/29/20 22:32
Comment Out
by danatrader. 03/29/20 22:03
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
3 registered members (AndrewAMD, jbhunter, alibaba), 675 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
gonzalez21, Cobus, HF_Psy, jj02520024, heitorfr
18409 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: [SUB] compute the conic shape for SPOTLIGHT dyn lights [Re: txesmi] #479213
03/01/20 21:53
03/01/20 21:53
Joined: Jun 2007
Posts: 1,304
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,304
Hiporope and its pain
Ok, I found the problem. In the diffuse term computation, the normal has to be in world space: Out.Normal.xyz

Quote
why do you use float instead of int for the 'for' loop where you cycle through all lights?

I once read somewhere that graphic cards overwork with integers. I don't really know why, even if it's true.

Re: [SUB] compute the conic shape for SPOTLIGHT dyn lights [Re: txesmi] #479214
03/01/20 21:55
03/01/20 21:55
Joined: May 2009
Posts: 5,192
Caucasus
3run Online
Senior Expert
3run  Online
Senior Expert

Joined: May 2009
Posts: 5,192
Caucasus
Thank you! Gonna try it tomorrow, it's almost 1 am here grin

Best regards!


Edit: I can't believe how dumb my mistake was... thank you very much!

Last edited by 3run; 03/02/20 08:08.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1