D3D11,Ogre1.10.12,use diffuse vertexcolour, RenderingAPIException
Posted: Fri Jan 25, 2019 2:33 am
Ogre Version: 1.10.12
Operating System: win10 X64
Render System: D3D11
In the material script, I set the diffuse attribute to vertexcolour, A RenderingAPIException appears, log as follows:
The material script is as follows:
this script works in opengl3+.
Who can help me?
thank you very much
Operating System: win10 X64
Render System: D3D11
In the material script, I set the diffuse attribute to vertexcolour, A RenderingAPIException appears, log as follows:
Code: Select all
Ogre.log (optional)
09:24:07: RenderingAPIException: Cannot compile D3D11 high-level shader e9735e433309a085401a927404527b53_VS Errors:
(57,2-67): error X3017: 'FFP_Modulate': cannot implicitly convert from 'float3' to 'float4'
in D3D11HLSLProgram::compileMicrocode at src\G3DD3D11HLSLProgram.cpp (line 551)
09:24:07: High-level program 'e9735e433309a085401a927404527b53_VS' is not supported: Cannot compile D3D11 high-level shader e9735e433309a085401a927404527b53_VS Errors:
(57,2-67): error X3017: 'FFP_Modulate': cannot implicitly convert from 'float3' to 'float4'
09:24:07: InvalidParametersException: Could not create gpu programs from render state in ProgramManager::acquireGpuPrograms at RTShaderSystem\G3DShaderProgramManager.cpp (line 109)
Code: Select all
material QuadTile_845472784_0_0_0_a
{
technique
{
pass
{
ambient vertexcolour
diffuse vertexcolour
}
}
}
Who can help me?
thank you very much