Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, degenerate_762), 1,423 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
syntax error??? #37300
12/03/04 05:48
12/03/04 05:48
Joined: Sep 2003
Posts: 48
germany
sane Offline OP
Newbie
sane  Offline OP
Newbie

Joined: Sep 2003
Posts: 48
germany
i am starting with the programming of shaders and i do not really improve.
when i am trying a simple thing like this:
Code:
material firstshader
{
effect = "
ps 1.3
def c0, 1.0f, 0.0f, 1.0f, 0.0f
";
}
action tree
{
my.material = firstshader;
}


the engine crushes down and a window appears saying something about a syntax error in the effect.

whats the problem?


---------------------------------- www.xiron.de
Re: syntax error??? [Re: sane] #37301
12/03/04 06:54
12/03/04 06:54
Joined: Oct 2000
Posts: 1,543
Germany
A
Alexander Esslinger Offline
Senior Developer
Alexander Esslinger  Offline
Senior Developer
A

Joined: Oct 2000
Posts: 1,543
Germany
The effect string expects a DirectX effect. See the DirectX manual for a list of all supported keywords and the correct syntax, or look at effects posted here.

The basic struct is:

Code:
// common effect string syntax

technique tech_name {
pass pass_name {
//... insert render stages here
}
}




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