mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +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
f2b86b7df3
commit
8c807485b1
17 changed files with 65 additions and 55 deletions
|
|
@ -47,7 +47,6 @@
|
|||
#include "materials/materialFeatureData.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// Base class used by shaderGen to be API agnostic. Subclasses implement the various methods
|
||||
/// in an API specific way.
|
||||
class ShaderGenPrinter
|
||||
|
|
@ -165,6 +164,8 @@ public:
|
|||
void setComponentFactory(ShaderGenComponentFactory* factory) { mComponentFactory = factory; }
|
||||
void setFileEnding(String ending) { mFileEnding = ending; }
|
||||
|
||||
static String smCommonShaderPath;
|
||||
|
||||
protected:
|
||||
|
||||
friend class ManagedSingleton<ShaderGen>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue