Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Exclude the sun #427010
08/01/13 08:42
08/01/13 08:42
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline OP
Member
jenGs  Offline OP
Member
J

Joined: Jul 2010
Posts: 283
Germany
Hi,
How can I exclude the sun in my pixelshader, but include all other dynamic lights?
I tried comparing vecLightDir[i].w, like stated in the manual, but this doesnÄt work.
Greetings,
Patrick

Re: Exclude the sun [Re: jenGs] #427012
08/01/13 08:54
08/01/13 08:54
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
probably i should be over 0. I think 0 is always the Sun.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Exclude the sun [Re: sivan] #427018
08/01/13 09:19
08/01/13 09:19
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline OP
Member
jenGs  Offline OP
Member
J

Joined: Jul 2010
Posts: 283
Germany
Ah yes that worked. Thank you.

Btw. The manual "vecLightDir[i].w > 10000 => sun;"
That's why I got confused laugh .


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