I can not create material...shaders

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
napeHeK
Posts: 4
Joined: Thu Sep 23, 2010 7:09 pm

I can not create material...shaders

Post by napeHeK »

This code is taken from the examples, but it does not work...

Code: Select all

newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles(
    "terrainShader.hlsl", "vertexMain", EVST_VS_2_0,
    "terrainShader.hlsl", "pixelMain", EPST_PS_2_0,
    mc, EMT_SOLID, 0);
What am I doing wrong?
Last edited by napeHeK on Thu Sep 23, 2010 7:37 pm, edited 1 time in total.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

"does not work" is always the worst way of describing a problem.
What do you mean with "does not work" ?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
napeHeK
Posts: 4
Joined: Thu Sep 23, 2010 7:09 pm

Post by napeHeK »

I do not know English, on it I have tried to briefly write. Error ...

Code: Select all

irr:: s32 irr:: video:: IGPUProgrammingServices:: addHighLevelShaderMaterialFromFiles (const irr:: io:: path &, const irr:: c8 *, irr:: video:: E_VERTEX_SHADER_TYPE, const irr:: io:: path &, const irr:: c8 *, irr:: video:: E_PIXEL_SHADER_TYPE, const irr:: io:: path &, const irr:: c8 *, irr:: video:: E_GEOMETRY_SHADER_TYPE, irr:: scene:: E_PRIMITIVE_TYPE, irr: : scene:: E_PRIMITIVE_TYPE, irr:: u32, irr:: video:: IShaderConstantSetCallBack *, irr:: video:: E_MATERIAL_TYPE, irr:: s32): can not convert parameter 8 from "irr:: video:: E_MATERIAL_TYPE" in " const irr:: c8 * "
pincherman
Posts: 3
Joined: Tue Jun 29, 2010 1:12 am

Re: I can not create material...shaders

Post by pincherman »

napeHeK wrote:This code is taken from the examples, but it does not work...

Code: Select all

newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles(
    "terrainShader.hlsl", "vertexMain", EVST_VS_2_0,
    "terrainShader.hlsl", "pixelMain", EPST_PS_2_0,
    mc, EMT_SOLID, 0);
What am I doing wrong?
I know what napeHeK is talking about, im using the same function to load shaders. The mesh that is assigned the new material type isn't rendered, and a black strip appears on screen going from bottom through top.

[/url]
Post Reply