Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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