Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
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
>
9
#include <
Mathematics/GteConstants.h
>
10
#include <
Graphics/GteLighting.h
>
11
using namespace
gte
;
12
13
Lighting::Lighting
()
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.0
f
, 1.0
f
, 1.0
f
}),
19
attenuation
({ 1.0f, 0.0f, 0.0f, 1.0f })
20
{
21
}
gte::Lighting::Lighting
Lighting()
Definition:
GteLighting.cpp:13
GTEnginePCH.h
GteConstants.h
gte::Lighting::attenuation
Vector4< float > attenuation
Definition:
GteLighting.h:41
gte
Definition:
GLX/GteWICFileIO.h:16
GTE_C_HALF_PI
#define GTE_C_HALF_PI
Definition:
GteConstants.h:18
f
GLfloat f
Definition:
glcorearb.h:1921
gte::Lighting::diffuse
Vector4< float > diffuse
Definition:
GteLighting.h:26
gte::Lighting::specular
Vector4< float > specular
Definition:
GteLighting.h:29
gte::Lighting::spotCutoff
Vector4< float > spotCutoff
Definition:
GteLighting.h:32
GteLighting.h
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00