material undiclared indentifier

Posted By: Muanh

material undiclared indentifier - 09/11/07 13:03

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?
Posted By: Fenriswolf

Re: material undiclared indentifier - 09/11/07 13:35

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.
Posted By: Muanh

Re: material undiclared indentifier - 09/11/07 21:43

ok thanks it works now Now still need to find out how to make a cel shader
© 2023 lite-C Forums