123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- //-----------------------------------------------------------------------------
- // Copyright (c) 2012 GarageGames, LLC
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to
- // deal in the Software without restriction, including without limitation the
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- // sell copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- // IN THE SOFTWARE.
- //-----------------------------------------------------------------------------
- #ifndef _SHADERGENVARS_H_
- #define _SHADERGENVARS_H_
- #ifndef _TORQUE_STRING_H_
- #include "core/util/str.h"
- #endif
- ///
- /// ShaderGenVars, predefined string names for variables that shadergen based shaders use, this avoids
- /// misspelling and string creation issues
- ///
- struct ShaderGenVars
- {
- const static String modelview;
- const static String worldViewOnly;
- const static String worldToCamera;
- const static String cameraToWorld;
- const static String worldToObj;
- const static String viewToObj;
- const static String invCameraTrans;
- const static String cameraToScreen;
- const static String screenToCamera;
- const static String cubeTrans;
- const static String cubeMips;
- const static String objTrans;
- const static String cubeEyePos;
- const static String eyePos;
- const static String eyePosWorld;
- const static String vEye;
- const static String eyeMat;
- const static String oneOverFarplane;
- const static String nearPlaneWorld;
- const static String fogData;
- const static String fogColor;
- const static String detailScale;
- const static String visibility;
- const static String colorMultiply;
- const static String alphaTestValue;
- const static String texMat;
- const static String accumTime;
- const static String dampness;
- const static String minnaertConstant;
- const static String subSurfaceParams;
- // Texture atlasing parameters
- const static String diffuseAtlasParams;
- const static String diffuseAtlasTileParams;
- const static String bumpAtlasParams;
- const static String bumpAtlasTileParams;
- // Render target parameters
- const static String targetSize;
- const static String oneOverTargetSize;
- // Lighting parameters used by the default
- // RTLighting shader feature.
- const static String lightPosition;
- const static String lightDiffuse;
- const static String lightAmbient;
- const static String lightConfigData;
- const static String lightSpotDir;
- const static String lightSpotParams;
- const static String hasVectorLight;
- const static String vectorLightDirection;
- const static String vectorLightColor;
- const static String vectorLightBrightness;
- const static String ormConfig;
- const static String roughness;
- const static String metalness;
- const static String glowMul;
- //Reflection Probes
- const static String probePositionArray;
- const static String probeRefPosArray;
- const static String refScaleArray;
- const static String worldToObjArray;
- const static String probeConfigDataArray;
- const static String specularCubemapAR;
- const static String irradianceCubemapAR;
- const static String probeCount;
- const static String BRDFTextureMap;
- const static String WetnessTextureMap;
- const static String maxProbeDrawDistance;
- //Skylight
- const static String skylightCubemapIdx;
- const static String skylightDamp;
-
- // Textures
- const static String fogMap;
- const static String dlightMap;
- const static String dlightMask;
- const static String dlightMapSec;
- const static String blackfogMap;
- const static String bumpMap;
- const static String lightMap;
- const static String lightNormMap;
- const static String cubeMap;
- const static String dLightMap;
- const static String dLightMapSec;
- const static String dLightMask;
- const static String toneMap;
- // Deferred Shading
- const static String matInfoFlags;
- };
- #endif
|