48 #ifndef AI_LIGHT_H_INC 49 #define AI_LIGHT_H_INC 62 aiLightSource_UNDEFINED = 0x0,
240 : mType (aiLightSource_UNDEFINED)
241 , mAttenuationConstant (0.f)
242 , mAttenuationLinear (1.f)
243 , mAttenuationQuadratic (0.f)
244 , mAngleInnerCone ((float)AI_MATH_TWO_PI)
245 , mAngleOuterCone ((float)AI_MATH_TWO_PI)
258 #endif // !! AI_LIGHT_H_INC float mAttenuationLinear
Linear light attenuation factor.
Definition: light.h:174
aiLightSourceType
Enumerates all supported types of light sources.
Definition: light.h:60
float mAngleOuterCone
Outer angle of a spot light's light cone.
Definition: light.h:232
Basic data types and primitives, such as vectors or colors.
Helper structure to describe a light source.
Definition: light.h:113
Represents a two-dimensional vector.
Definition: vector2.h:108
C_STRUCT aiColor3D mColorAmbient
Ambient color of the light source.
Definition: light.h:212
C_STRUCT aiVector3D mDirection
Direction of the light source in space.
Definition: light.h:142
C_STRUCT aiColor3D mColorDiffuse
Diffuse color of the light source.
Definition: light.h:194
An area light is a rectangle with predefined size that uniformly emits light from one of its sides...
Definition: light.h:90
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:252
This value is not used.
Definition: light.h:96
C_STRUCT aiColor3D mColorSpecular
Specular color of the light source.
Definition: light.h:202
C_STRUCT aiVector2D mSize
Size of area light source.
Definition: light.h:235
The generic light level of the world, including the bounces of all other light sources.
Definition: light.h:85
float mAttenuationConstant
Constant light attenuation factor.
Definition: light.h:162
Definition: vector3.h:135
Represents a color in Red-Green-Blue space.
Definition: types.h:158
C_STRUCT aiVector3D mPosition
Position of the light source in space.
Definition: light.h:134
A directional light source has a well-defined direction but is infinitely far away.
Definition: light.h:67
float mAttenuationQuadratic
Quadratic light attenuation factor.
Definition: light.h:186
float mAngleInnerCone
Inner angle of a spot light's light cone.
Definition: light.h:220
A spot light source emits light in a specific angle.
Definition: light.h:78
C_STRUCT aiString mName
The name of the light source.
Definition: light.h:121
A point light source has a well-defined position in space but no direction - it emits light in all di...
Definition: light.h:72
C_ENUM aiLightSourceType mType
The type of the light source.
Definition: light.h:127
C_STRUCT aiVector3D mUp
Up direction of the light source in space.
Definition: light.h:150