LightImage
The LightImage class represents image-based lighting (IBL). It supports manual assignment or automatic generation of diffuse and specular cubemap textures from environment maps. Multiple LightImage instances can be placed within a scene, with the renderer automatically blending lighting parameters from the nearest sources. The class provides adjustable light intensity and spatial settings for precise control over ambient lighting.
#include <scene/TellusimLightImage.h>
Inheritance
- Inherits from Light
Constructors
explicit LightImage(const char *name = nullptr)
explicit LightImage(Scene &scene, const char *name = nullptr)
Methods
Light weight.
void setWeight(float32_t weight)
float32_t getWeight() const
Light radius.
void setRadius(float32_t radius)
float32_t getRadius() const
Light size.
void setSize(Vector3f size)
const Vector3f getSize() const
Diffuse texture.
void setDiffuseTexture(const char *file, uint32_t priority = 0)
void setDiffuseTexture(const String &file, uint32_t priority = 0)
void setDiffuseTexture(const char *hash, const char *file, uint32_t priority = 0)
void setDiffuseTexture(const char *hash, Image &image, uint32_t priority = 0)
void setDiffuseTexture(const char *hash, Texture &texture, uint32_t priority = 0)
String getDiffuseTextureHash() const
String getDiffuseTextureFile() const
Texture getDiffuseTextureSource() const
Specular texture.
void setSpecularTexture(const char *file, uint32_t priority = 0)
void setSpecularTexture(const String &file, uint32_t priority = 0)
void setSpecularTexture(const char *hash, const char *file, uint32_t priority = 0)
void setSpecularTexture(const char *hash, Image &image, uint32_t priority = 0)
void setSpecularTexture(const char *hash, Texture &texture, uint32_t priority = 0)
String getSpecularTextureHash() const
String getSpecularTextureFile() const
Texture getSpecularTextureSource() const
Light environment.
void setEnvironment(const char *file, uint32_t priority = 0)
void setEnvironment(const String &file, uint32_t priority = 0)
void setEnvironment(const char *hash, const char *file, uint32_t priority = 0)
void setEnvironment(const char *hash, Image &image, uint32_t priority = 0)
void setEnvironment(const char *hash, Stream &stream, uint32_t priority = 0)
void setEnvironment(const char *hash, Texture &texture, uint32_t priority = 0)
String getEnvironmentHash() const
String getEnvironmentFile() const
Texture getEnvironmentSource() const