Shader Compiler Errors [1.1b]
by Eric Smith · in Torque 3D Professional · 03/24/2010 (1:14 pm) · 2 replies
Hi All,
I just ported over the 1.1b into my game. I finally got a clean compile and can run the game, but when I load the map, I get a bunch of shader errors. Like so:
I'm not sure what I missed. I've tried deleting the procedural shaders thinking that might be it. I've merged over a lot of the changes from the FULL template to my game but still occurs. I have also moved the shader changes from the FULL template as well.
Any ideas?
I just ported over the 1.1b into my game. I finally got a clean compile and can run the game, but when I load the map, I get a bunch of shader errors. Like so:
GFXD3D9Shader::_compileShader - Error compiling shader: E_FAIL: An undetermined error occurred (80004005) shadergen:/911a290e40ab7c8a_P.hlsl(79,59): error X3004: undeclared identifier 'AL_ConstantSpecularPower' shadergen:/911a290e40ab7c8a_P.hlsl(79,38): error X3013: 'ceil': intrinsic function does not take 1 parameter shadergen:/911a290e40ab7c8a_P.hlsl(79,38): error X3013: Possible intrinsic functions are: shadergen:/911a290e40ab7c8a_P.hlsl(79,38): error X3013: ceil(float)
I'm not sure what I missed. I've tried deleting the procedural shaders thinking that might be it. I've merged over a lot of the changes from the FULL template to my game but still occurs. I have also moved the shader changes from the FULL template as well.
Any ideas?
About the author
http://ca.linkedin.com/pub/eric-smith/2/56/a51
#2
Seems you didn't update your shaders/common folder. It still has the shaders from 1.0.1 and not the changes made for 1.1.
Just copy over the updated shaders/common folder and that should be fixed along with alot of other bugs you've probably encountered.
You should also copy over the 'core' scripts and 'tools' to be sure your fully up to date.
03/27/2010 (5:23 pm)
Actually i ran into this issue myself.Seems you didn't update your shaders/common folder. It still has the shaders from 1.0.1 and not the changes made for 1.1.
Just copy over the updated shaders/common folder and that should be fixed along with alot of other bugs you've probably encountered.
You should also copy over the 'core' scripts and 'tools' to be sure your fully up to date.
Torque Owner Ivan Mandzhukov
Liman3D
The problem seems to be the specular feature:
ceil(specularPower / AL_ConstantSpecularPower)
Try to disable the specular.