Game Development Community

Shader include compile problem

by Justin Miller · in Torque Game Engine Advanced · 03/10/2007 (7:05 pm) · 3 replies

Running any exe built by a clean install of TGEA, i get the following error:

"Unable to compile vertex shader: shaders/legacyTerrain/TerrainDynamicLightingMaskV.hlsl"

The shader is there, nothing is read-only. The message from console.log says "failed to open source file ../shdrConsts.h", but that file also exists (in the shaders directory) and is readable.

Anyone have this problem? How do I get the #include to find shdrConsts.h?

#1
03/11/2007 (4:21 am)
Sounds like you have DX SDK after oct 06
Those will throw this error until you apply the legacy fix.

(DX Dec 06 and later have no non-legacy support for Shader 1.1)
#2
03/11/2007 (3:57 pm)
Hmm, how *do* I get TGEA to compile these shaders in legacy mode, then? Or will I need to compile them manually? Sorry if this fix you mention is somewhere on the site already -- I've searched several times and found nothing.
#3
03/11/2007 (4:42 pm)
Its not on the site.
You have to modify and recompile TGEA to use legacy support or deinstall your DX SDK and install Oct 06 DX SDK.

www.garagegames.com/mg/forums/result.thread.php?qt=57991