Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 10/15/25 20:44
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, Quad, 2 invisible), 6,479 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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 | 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