Torque3D Documentation / _generateds / shaderGenVars.h

shaderGenVars.h

Engine/source/shaderGen/shaderGenVars.h

More...

Classes:

class

ShaderGenVars, predefined string names for variables that shadergen based shaders use, this avoids misspelling and string creation issues.

Detailed Description

  1
  2//-----------------------------------------------------------------------------
  3// Copyright (c) 2012 GarageGames, LLC
  4//
  5// Permission is hereby granted, free of charge, to any person obtaining a copy
  6// of this software and associated documentation files (the "Software"), to
  7// deal in the Software without restriction, including without limitation the
  8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  9// sell copies of the Software, and to permit persons to whom the Software is
 10// furnished to do so, subject to the following conditions:
 11//
 12// The above copyright notice and this permission notice shall be included in
 13// all copies or substantial portions of the Software.
 14//
 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 21// IN THE SOFTWARE.
 22//-----------------------------------------------------------------------------
 23#ifndef _SHADERGENVARS_H_
 24#define _SHADERGENVARS_H_
 25
 26#ifndef _TORQUE_STRING_H_
 27#include "core/util/str.h"
 28#endif
 29
 30///
 31/// ShaderGenVars, predefined string names for variables that shadergen based shaders use, this avoids
 32/// misspelling and string creation issues
 33///
 34struct ShaderGenVars
 35{
 36   const static String modelview;
 37   const static String worldViewOnly;
 38   const static String worldToCamera;
 39   const static String cameraToWorld;
 40   const static String worldToObj;
 41   const static String viewToObj;
 42   const static String invCameraTrans;
 43   const static String cameraToScreen;
 44   const static String screenToCamera;
 45   const static String cubeTrans;
 46   const static String cubeMips;
 47   const static String objTrans;
 48   const static String cubeEyePos;
 49   const static String eyePos;
 50   const static String eyePosWorld;
 51   const static String vEye;
 52   const static String eyeMat;
 53   const static String oneOverFarplane;
 54   const static String nearPlaneWorld;
 55   const static String fogData;
 56   const static String fogColor;
 57   const static String detailScale;
 58   const static String visibility;
 59   const static String colorMultiply;
 60   const static String alphaTestValue;
 61   const static String texMat;
 62   const static String accumTime;
 63   const static String minnaertConstant;
 64   const static String subSurfaceParams;
 65
 66   // Texture atlasing parameters
 67   const static String diffuseAtlasParams;
 68   const static String diffuseAtlasTileParams;
 69   const static String bumpAtlasParams;
 70   const static String bumpAtlasTileParams;
 71
 72   // Render target parameters
 73   const static String targetSize;
 74   const static String oneOverTargetSize;
 75
 76   // Lighting parameters used by the default
 77   // RTLighting shader feature.
 78   const static String lightPosition;
 79   const static String lightDiffuse;
 80   const static String lightAmbient;
 81   const static String lightConfigData;
 82   const static String lightSpotDir;
 83   const static String lightSpotParams;
 84   const static String hasVectorLight;
 85   const static String vectorLightDirection;
 86   const static String vectorLightColor;
 87   const static String vectorLightBrightness;
 88
 89   const static String ormConfig;
 90   const static String roughness;
 91   const static String metalness;
 92   const static String glowMul;
 93
 94   //Reflection Probes
 95   const static String probePosition;
 96   const static String probeRefPos;
 97   const static String refScale;
 98   const static String worldToObjArray;
 99   const static String probeConfigData;
100   const static String specularCubemapAR;
101   const static String irradianceCubemapAR;
102   const static String probeCount;
103
104   const static String BRDFTextureMap;
105
106   //Skylight
107   const static String skylightCubemapIdx;
108   
109   // Textures
110   const static String fogMap;
111   const static String dlightMap;
112   const static String dlightMask;
113   const static String dlightMapSec;
114   const static String blackfogMap;
115   const static String bumpMap;
116   const static String lightMap;
117   const static String lightNormMap;
118   const static String cubeMap;
119   const static String dLightMap;
120   const static String dLightMapSec;
121   const static String dLightMask;
122   const static String toneMap;
123
124   // Deferred Shading
125   const static String matInfoFlags;
126};
127
128#endif
129