sceneLightingGlobals.h
Engine/source/lighting/common/sceneLightingGlobals.h
Public Variables
Detailed Description
Public Variables
const Point3F BoxNormals []
Point3F BoxPnts []
U32 BoxSharedEdgeMask [][6]
U32 BoxVerts [][4]
SceneLighting * gLighting
F32 gParellelVectorThresh
F32 gPlaneDistThresh
F32 gPlaneNormThresh
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 24static const Point3F BoxNormals[] = 25{ 26 Point3F( 1, 0, 0), 27 Point3F(-1, 0, 0), 28 Point3F( 0, 1, 0), 29 Point3F( 0,-1, 0), 30 Point3F( 0, 0, 1), 31 Point3F( 0, 0,-1) 32}; 33 34static U32 BoxVerts[][4] = { 35 {7,6,4,5}, // +x 36 {0,2,3,1}, // -x 37 {7,3,2,6}, // +y 38 {0,1,5,4}, // -y 39 {7,5,1,3}, // +z 40 {0,4,6,2} // -z 41}; 42 43static U32 BoxSharedEdgeMask[][6] = { 44 {0, 0, 1, 4, 8, 2}, 45 {0, 0, 2, 8, 4, 1}, 46 {8, 2, 0, 0, 1, 4}, 47 {4, 1, 0, 0, 2, 8}, 48 {1, 4, 8, 2, 0, 0}, 49 {2, 8, 4, 1, 0, 0} 50}; 51 52static Point3F BoxPnts[] = { 53 Point3F(0,0,0), 54 Point3F(0,0,1), 55 Point3F(0,1,0), 56 Point3F(0,1,1), 57 Point3F(1,0,0), 58 Point3F(1,0,1), 59 Point3F(1,1,0), 60 Point3F(1,1,1) 61}; 62 63extern SceneLighting *gLighting; 64extern F32 gParellelVectorThresh; 65extern F32 gPlaneNormThresh; 66extern F32 gPlaneDistThresh; 67 68