Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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