Support Forum       G3D Web Page     
Public Attributes | List of all members
glsl::Light_glsl::Light Struct Reference

Public Attributes

vec4 attenuation
 w element is the spotlight cutoff angle. More...
 
vec3 color
 Power of the light. More...
 
vec3 direction
 Spot light facing direction (unit length). More...
 
vec4 position
 World space light position. More...
 
float radius
 Radius of the light bulb itself; no relation to the light's effect sphere. More...
 
bool rectangular
 Is this spotlight's field of view rectangular (instead of round)? More...
 
vec3 right
 Object-space X axis of the light. More...
 
ShadowMap shadowMap
 
float softnessConstant
 
vec3 up
 Object-space Y axis of the light. More...
 

Member Data Documentation

◆ attenuation

vec4 glsl::Light_glsl::Light::attenuation

w element is the spotlight cutoff angle.

◆ color

vec3 glsl::Light_glsl::Light::color

Power of the light.

◆ direction

vec3 glsl::Light_glsl::Light::direction

Spot light facing direction (unit length).

Object space -z axis.

◆ position

vec4 glsl::Light_glsl::Light::position

World space light position.

◆ radius

float glsl::Light_glsl::Light::radius

Radius of the light bulb itself; no relation to the light's effect sphere.

◆ rectangular

bool glsl::Light_glsl::Light::rectangular

Is this spotlight's field of view rectangular (instead of round)?

◆ right

vec3 glsl::Light_glsl::Light::right

Object-space X axis of the light.

◆ shadowMap

ShadowMap glsl::Light_glsl::Light::shadowMap

◆ softnessConstant

float glsl::Light_glsl::Light::softnessConstant

◆ up

vec3 glsl::Light_glsl::Light::up

Object-space Y axis of the light.


documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15