mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +00:00
Reworks the $Core::commonShaderPath variable usage to be a static variable in ShaderGen for efficiency(only one getVariable when shadergen is initialized), as well as implements the ability to set a default value, and ensures that it tries to set a path even if the pref variable is missing which is important for ported projects from older builds.
This commit is contained in:
parent
3d7c1bbbf7
commit
7567ca10c3
17 changed files with 65 additions and 55 deletions
|
|
@ -29,7 +29,7 @@
|
|||
#include "materials/processedMaterial.h"
|
||||
#include "materials/materialFeatureTypes.h"
|
||||
#include "shaderGen/shaderGenVars.h"
|
||||
|
||||
#include "shaderGen/shaderGen.h"
|
||||
|
||||
void BumpFeatGLSL::processVert( Vector<ShaderComponent*> &componentList,
|
||||
const MaterialFeatureData &fd )
|
||||
|
|
@ -235,7 +235,7 @@ void BumpFeatGLSL::setTexData( Material::StageData &stageDat,
|
|||
|
||||
|
||||
ParallaxFeatGLSL::ParallaxFeatGLSL()
|
||||
: mIncludeDep(String(Con::getVariable("$Core::CommonShaderPath")) + String("/gl/torque.glsl" ))
|
||||
: mIncludeDep(ShaderGen::smCommonShaderPath + String("/gl/torque.glsl" ))
|
||||
{
|
||||
addDependency( &mIncludeDep );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue