|
@@ -45,16 +45,29 @@ GFXShader::~GFXShader()
|
|
Torque::FS::RemoveChangeNotification( mPixelFile, this, &GFXShader::_onFileChanged );
|
|
Torque::FS::RemoveChangeNotification( mPixelFile, this, &GFXShader::_onFileChanged );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifndef TORQUE_OPENGL
|
|
bool GFXShader::init( const Torque::Path &vertFile,
|
|
bool GFXShader::init( const Torque::Path &vertFile,
|
|
const Torque::Path &pixFile,
|
|
const Torque::Path &pixFile,
|
|
F32 pixVersion,
|
|
F32 pixVersion,
|
|
const Vector<GFXShaderMacro> ¯os )
|
|
const Vector<GFXShaderMacro> ¯os )
|
|
|
|
+{
|
|
|
|
+ Vector<String> samplerNames;
|
|
|
|
+ return init( vertFile, pixFile, pixVersion, macros, samplerNames );
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+bool GFXShader::init( const Torque::Path &vertFile,
|
|
|
|
+ const Torque::Path &pixFile,
|
|
|
|
+ F32 pixVersion,
|
|
|
|
+ const Vector<GFXShaderMacro> ¯os,
|
|
|
|
+ const Vector<String> &samplerNames)
|
|
{
|
|
{
|
|
// Store the inputs for use in reloading.
|
|
// Store the inputs for use in reloading.
|
|
mVertexFile = vertFile;
|
|
mVertexFile = vertFile;
|
|
mPixelFile = pixFile;
|
|
mPixelFile = pixFile;
|
|
mPixVersion = pixVersion;
|
|
mPixVersion = pixVersion;
|
|
mMacros = macros;
|
|
mMacros = macros;
|
|
|
|
+ mSamplerNamesOrdered = samplerNames;
|
|
|
|
|
|
// Before we compile the shader make sure the
|
|
// Before we compile the shader make sure the
|
|
// conditioner features have been updated.
|
|
// conditioner features have been updated.
|