Gamestudio Links
Zorro Links
Newest Posts
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 22,335 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
material undiclared indentifier #153438
09/11/07 13:03
09/11/07 13:03
Joined: Sep 2007
Posts: 4
M
Muanh Offline OP
Guest
Muanh  Offline OP
Guest
M

Joined: Sep 2007
Posts: 4
Hi i just started with shaders and wanted to do a tutorial.

This is my code:
Code:
 
material mtlNormalMapped
{
flags = tangent; // Make sure the engine sends tangents to the shader (only
// needed for tangent space normal mapping)
effect = "NormalMapped.fx"; // This is the effect file that contains the shader code.
}



But when i include this in my main file i get an error saying:
material undiclared indentifier

Can someone please help me?

Re: material undiclared indentifier [Re: Muanh] #153439
09/11/07 13:35
09/11/07 13:35
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline
Member
Fenriswolf  Offline
Member
F

Joined: Jan 2007
Posts: 221
Hi,

I guess you are using lite-c.

In lite-c a material is defined the following way:

Code:

MATERIAL* mtlNormalMapped =
{
...
}



The code you have posted works mit c-script only.

Re: material undiclared indentifier [Re: Fenriswolf] #153440
09/11/07 21:43
09/11/07 21:43
Joined: Sep 2007
Posts: 4
M
Muanh Offline OP
Guest
Muanh  Offline OP
Guest
M

Joined: Sep 2007
Posts: 4
ok thanks it works now Now still need to find out how to make a cel shader


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