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
1 registered members (TedMar), 1,420 guests, and 3 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
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