Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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