46 #ifndef __AI_LIGHT_H_INC__ 47 #define __AI_LIGHT_H_INC__ 60 aiLightSource_UNDEFINED = 0x0,
216 : mType (aiLightSource_UNDEFINED)
217 , mAttenuationConstant (0.f)
218 , mAttenuationLinear (1.f)
219 , mAttenuationQuadratic (0.f)
220 , mAngleInnerCone ((float)AI_MATH_TWO_PI)
221 , mAngleOuterCone ((float)AI_MATH_TWO_PI)
233 #endif // !! __AI_LIGHT_H_INC__ float mAttenuationLinear
Linear light attenuation factor.
Definition: light.h:153
aiLightSourceType
Enumerates all supported types of light sources.
Definition: light.h:58
float mAngleOuterCone
Outer angle of a spot light's light cone.
Definition: light.h:211
Basic data types and primitives, such as vectors or colors.
Helper structure to describe a light source.
Definition: light.h:100
C_STRUCT aiColor3D mColorAmbient
Ambient color of the light source.
Definition: light.h:191
C_STRUCT aiVector3D mDirection
Direction of the light source in space.
Definition: light.h:129
C_STRUCT aiColor3D mColorDiffuse
Diffuse color of the light source.
Definition: light.h:173
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:251
This value is not used.
Definition: light.h:83
C_STRUCT aiColor3D mColorSpecular
Specular color of the light source.
Definition: light.h:181
float mAttenuationConstant
Constant light attenuation factor.
Definition: light.h:141
Definition: vector3.h:134
Represents a color in Red-Green-Blue space.
Definition: types.h:159
C_STRUCT aiVector3D mPosition
Position of the light source in space.
Definition: light.h:121
A directional light source has a well-defined direction but is infinitely far away.
Definition: light.h:65
float mAttenuationQuadratic
Quadratic light attenuation factor.
Definition: light.h:165
float mAngleInnerCone
Inner angle of a spot light's light cone.
Definition: light.h:199
A spot light source emits light in a specific angle.
Definition: light.h:76
C_STRUCT aiString mName
The name of the light source.
Definition: light.h:108
A point light source has a well-defined position in space but no direction - it emits light in all di...
Definition: light.h:70
C_ENUM aiLightSourceType mType
The type of the light source.
Definition: light.h:114