Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (3run, AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip), 605 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: specular Shader AUM54 use with transparens HO [Re: ChrisB] #80742
07/13/06 14:26
07/13/06 14:26
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
There is a little problem...when I paste it in "Editor" to save it as fx.
I get these: !!!chaos!!!

OHHHH! I see!!! there is only one change... ...sorry...
my mistake!!!

Last edited by Hummel; 07/13/06 14:29.
Re: specular Shader AUM54 use with transparens HO [Re: Hummel] #80743
07/13/06 14:36
07/13/06 14:36
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
Ohhhhhh yes!!!!
It works!!! Thats great!!!
Thank you!!!
-> *****(5 stars) for ChrisB and Matt!!!!

Re: specular Shader AUM54 use with transparens HO [Re: Hummel] #80744
07/13/06 20:18
07/13/06 20:18
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:


return
(
(ambientcolor * color) + //ambient

((shadow7* (color * diff7 + (spec7 * color))) * suncolor)
);




However, to fix this this is easy.. just change the above return function to this:

float4 finalcolor;
finalcolor.rgb=
( (ambientcolor * color) + ( (shadow7* (color * diff7 + (spec7 * color)) ) * suncolor );

finalcolor.a=color.a;

return finalcolor;

..maybe somne sytax mistakes, havenmt tested it but it should work..


Sphere Engine--the premier A6 graphics plugin.
Re: specular Shader AUM54 use with transparens HO [Re: Matt_Aufderheide] #80745
07/14/06 04:48
07/14/06 04:48
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
Ok! it works too - like ChrisB´s version

Last edited by Hummel; 07/14/06 04:49.
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