Skip to content

raisin::SensorBatchRenderer::RgbLighting ​

struct · #include <rayrai/SensorBatchRenderer.hpp>

Lighting of the RGB cameras.

Public attributes ​

lightDirection ​

cpp
std::array<float, 3> lightDirection

Direction the light travels, as Light::direction (need not be unit length).

lightColor ​

cpp
std::array<float, 3> lightColor

Linear color of the directional light.

ambient ​

cpp
std::array<float, 3> ambient

Linear color added regardless of surface orientation.

background ​

cpp
std::array<float, 3> background

Color where nothing was hit, written as is (already gamma encoded), in [0, 1].

gamma ​

cpp
float gamma

Output encoding: color^(1 / gamma).

RaiSim — physics for robotics and AI.