GteLighting.cpp
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #include <GTEnginePCH.h>
10 #include <Graphics/GteLighting.h>
11 using namespace gte;
12 
14  :
15  ambient({ 1.0f, 1.0f, 1.0f, 1.0f }),
16  diffuse({ 1.0f, 1.0f, 1.0f, 1.0f }),
17  specular({ 1.0f, 1.0f, 1.0f, 1.0f }),
18  spotCutoff({ (float)GTE_C_HALF_PI, 0.0f, 1.0f, 1.0f }),
19  attenuation({ 1.0f, 0.0f, 0.0f, 1.0f })
20 {
21 }
Vector4< float > attenuation
Definition: GteLighting.h:41
#define GTE_C_HALF_PI
Definition: GteConstants.h:18
GLfloat f
Definition: glcorearb.h:1921
Vector4< float > diffuse
Definition: GteLighting.h:26
Vector4< float > specular
Definition: GteLighting.h:29
Vector4< float > spotCutoff
Definition: GteLighting.h:32


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00