Code: Select all
newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles(
"terrainShader.hlsl", "vertexMain", EVST_VS_2_0,
"terrainShader.hlsl", "pixelMain", EPST_PS_2_0,
mc, EMT_SOLID, 0);Code: Select all
newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles(
"terrainShader.hlsl", "vertexMain", EVST_VS_2_0,
"terrainShader.hlsl", "pixelMain", EPST_PS_2_0,
mc, EMT_SOLID, 0);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 * "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.napeHeK wrote:This code is taken from the examples, but it does not work...What am I doing wrong?Code: Select all
newMaterialType1 = gpu->addHighLevelShaderMaterialFromFiles( "terrainShader.hlsl", "vertexMain", EVST_VS_2_0, "terrainShader.hlsl", "pixelMain", EPST_PS_2_0, mc, EMT_SOLID, 0);