Skip to content

raisim::rscene::Light ​

struct · #include <raisim/Rscene.hpp>

A light (render settings, interpreted by a viewer).

Public attributes ​

id ​

cpp
std::string id

Node id and scene node path.

path ​

cpp
std::string path

type ​

cpp
LightType type

position ​

cpp
Vec3 position

Position (m) and the direction the light travels.

direction ​

cpp
Vec3 direction

intensity ​

cpp
double intensity

Diffuse intensity and color, ambient and specular colors, specular intensity.

specularIntensity ​

cpp
double specularIntensity

color ​

cpp
Color color

ambientColor ​

cpp
Color ambientColor

specularColor ​

cpp
Color specularColor

attenuationConstant ​

cpp
double attenuationConstant

Attenuation coefficients, cone angles (deg) and source radius (m). The file's range key is not used: the coefficients decide the falloff, in Engine 2 as well.

attenuationLinear ​

cpp
double attenuationLinear

attenuationQuadratic ​

cpp
double attenuationQuadratic

coneAngle ​

cpp
double coneAngle

innerConeAngle ​

cpp
double innerConeAngle

radius ​

cpp
double radius

areaSize ​

cpp
Vec3 areaSize

Area-light size (m) and axes in the light frame.

areaRight ​

cpp
Vec3 areaRight

areaUp ​

cpp
Vec3 areaUp

projectorTexture ​

cpp
std::string projectorTexture

Projector texture (a file reference), strength and UV transform.

projectorStrength ​

cpp
double projectorStrength

projectorUvScale ​

cpp
Vec2 projectorUvScale

projectorUvOffset ​

cpp
Vec2 projectorUvOffset

negative ​

cpp
bool negative

temperatureEnabled ​

cpp
bool temperatureEnabled

colorTemperature ​

cpp
double colorTemperature

distanceFadeEnabled ​

cpp
bool distanceFadeEnabled

distanceFadeBegin ​

cpp
double distanceFadeBegin

distanceFadeShadow ​

cpp
double distanceFadeShadow

distanceFadeLength ​

cpp
double distanceFadeLength

shadows ​

cpp
bool shadows

Shadow settings.

shadowResolution ​

cpp
int shadowResolution

shadowBias ​

cpp
double shadowBias

shadowStrength ​

cpp
double shadowStrength

shadowPcfRadius ​

cpp
double shadowPcfRadius

shadowOrthoHalfSize ​

cpp
double shadowOrthoHalfSize

shadowNear ​

cpp
double shadowNear

shadowFar ​

cpp
double shadowFar

shadowCenter ​

cpp
Vec3 shadowCenter

shadowPosition ​

cpp
Vec3 shadowPosition

shadowUseCustomPosition ​

cpp
bool shadowUseCustomPosition

visible ​

cpp
bool visible

A hidden light is not applied.

RaiSim — physics for robotics and AI.