Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (AndrewAMD, Live, alibaba, Martin_HH), 30,750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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