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
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 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
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