Game Development Community

Can't load shaders from zip archive?

by Kristoffer Benjaminsson · in Torque Game Engine · 02/22/2007 (12:16 pm) · 2 replies

Hi,

I'm currently porting my TGE project to TGEA and just discovered that I can't load the shaders from a zip-archive. Does anyone know if this is a bug or a feature?

Thanks,
Kristoffer

#1
02/22/2007 (3:42 pm)
This is neither. The problem (if I'm thinking correctly) occurs when the shader compiler tries to evaluate "#include" directives. You can get around this problem by implementing ID3DXShaderInclude and wiring in the resource manager to provide the #include files.
#2
02/24/2007 (6:46 am)
When you put it that way it makes perfect sense. Thanks!