When attempting to use decals in a scene with terra objects it crashes due to the shaders/materials probably not supporting the decals.
Whats the right way to fix it? I found the "hlms_enable_decals" property, but i'm not entirely sure what the right way to enable it is. (I'd rather ask for the right way rather than to hack through a bunch of hlms properties)
Code: Select all
12:07:59: OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 700000004PixelShader_ps Errors:
E:\Game Development\Ogre\ogre-next\build\bin\Debug\700000004PixelShader_ps.hlsl(1432,25): error X3004: undeclared identifier 'decalsDiffuseTex'
in D3D11HLSLProgram::compileMicrocode at E:\Game Development\Ogre\ogre-next\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 554)
12:07:59: High-level program 700000004PixelShader_ps encountered an error during loading and is thus not supported.
OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 700000004PixelShader_ps Errors:
E:\Game Development\Ogre\ogre-next\build\bin\Debug\700000004PixelShader_ps.hlsl(1432,25): error X3004: undeclared identifier 'decalsDiffuseTex'
in D3D11HLSLProgram::compileMicrocode at E:\Game Development\Ogre\ogre-next\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 554)
12:07:59: OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 700000005PixelShader_ps Errors:
E:\Game Development\Ogre\ogre-next\build\bin\Debug\700000005PixelShader_ps.hlsl(1432,25): error X3004: undeclared identifier 'decalsDiffuseTex'
in D3D11HLSLProgram::compileMicrocode at E:\Game Development\Ogre\ogre-next\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 554)
12:07:59: High-level program 700000005PixelShader_ps encountered an error during loading and is thus not supported.
OGRE EXCEPTION(-2147467259:RenderingAPIException): Cannot compile D3D11 high-level shader 700000005PixelShader_ps Errors:
E:\Game Development\Ogre\ogre-next\build\bin\Debug\700000005PixelShader_ps.hlsl(1432,25): error X3004: undeclared identifier 'decalsDiffuseTex'
in D3D11HLSLProgram::compileMicrocode at E:\Game Development\Ogre\ogre-next\RenderSystems\Direct3D11\src\OgreD3D11HLSLProgram.cpp (line 554)
Thanks in advance!