raisim::rscene::Light
struct · #include <raisim/Rscene.hpp>
A light (render settings, interpreted by a viewer).
Public attributes
id
cpp
std::string idNode id and scene node path.
path
cpp
std::string pathtype
cpp
LightType typeposition
cpp
Vec3 positionPosition (m) and the direction the light travels.
direction
cpp
Vec3 directionintensity
cpp
double intensityDiffuse intensity and color, ambient and specular colors, specular intensity.
specularIntensity
cpp
double specularIntensitycolor
cpp
Color colorambientColor
cpp
Color ambientColorspecularColor
cpp
Color specularColorattenuationConstant
cpp
double attenuationConstantAttenuation 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 attenuationLinearattenuationQuadratic
cpp
double attenuationQuadraticconeAngle
cpp
double coneAngleinnerConeAngle
cpp
double innerConeAngleradius
cpp
double radiusareaSize
cpp
Vec3 areaSizeArea-light size (m) and axes in the light frame.
areaRight
cpp
Vec3 areaRightareaUp
cpp
Vec3 areaUpprojectorTexture
cpp
std::string projectorTextureProjector texture (a file reference), strength and UV transform.
projectorStrength
cpp
double projectorStrengthprojectorUvScale
cpp
Vec2 projectorUvScaleprojectorUvOffset
cpp
Vec2 projectorUvOffsetnegative
cpp
bool negativetemperatureEnabled
cpp
bool temperatureEnabledcolorTemperature
cpp
double colorTemperaturedistanceFadeEnabled
cpp
bool distanceFadeEnableddistanceFadeBegin
cpp
double distanceFadeBegindistanceFadeShadow
cpp
double distanceFadeShadowdistanceFadeLength
cpp
double distanceFadeLengthshadows
cpp
bool shadowsShadow settings.
shadowResolution
cpp
int shadowResolutionshadowBias
cpp
double shadowBiasshadowStrength
cpp
double shadowStrengthshadowPcfRadius
cpp
double shadowPcfRadiusshadowOrthoHalfSize
cpp
double shadowOrthoHalfSizeshadowNear
cpp
double shadowNearshadowFar
cpp
double shadowFarshadowCenter
cpp
Vec3 shadowCentershadowPosition
cpp
Vec3 shadowPositionshadowUseCustomPosition
cpp
bool shadowUseCustomPositionvisible
cpp
bool visibleA hidden light is not applied.