EntropyCanvas::Light
EntropyCanvas::Light
Section titled “EntropyCanvas::Light”Light component for scene illumination. More…
#include <Light.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| Light | spot(float coneAngle, float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f)) Create spot light (sphere with shaping). |
| Light | sphereArea(float radius, float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f)) Create sphere light with radius (area light). |
| Light | sphere(float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f)) Create default sphere/point light. |
| Light | distant(float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f)) Create distant/directional light (sun-like). |
| ENTROPY_REGISTER_TYPE(Light ) | |
| ENTROPY_FIELD_EXTENSION(float , range ) | |
| ENTROPY_FIELD_EXTENSION(float , bounceFactor ) | |
| ENTROPY_FIELD_EXTENSION(bool , castsShadows ) | |
| ENTROPY_FIELD_EXTENSION(uint32_t , shadowResolution ) | |
| ENTROPY_FIELD_EXTENSION(uint32_t , shadowCascadeCount ) | |
| ENTROPY_FIELD(LightType , lightType ) | |
| ENTROPY_FIELD(glm::vec3 , color ) | |
| ENTROPY_FIELD(float , intensity ) | |
| virtual | ENTROPY_FIELD(float , exposure ) =0 |
| ENTROPY_FIELD(bool , enableColorTemperature ) | |
| ENTROPY_FIELD(float , colorTemperature ) | |
| ENTROPY_FIELD(float , diffuse ) | |
| ENTROPY_FIELD(float , specular ) | |
| ENTROPY_FIELD(bool , normalize ) | |
| virtual | ENTROPY_FIELD(float , radius ) =0 |
| virtual | ENTROPY_FIELD(float , angle ) =0 |
| ENTROPY_FIELD(float , shapingConeAngle ) | |
| virtual | ENTROPY_FIELD(float , shapingConeSoftness ) =0 |
| virtual | ENTROPY_FIELD(float , shapingFocus ) =0 |
| ENTROPY_FIELD(glm::vec3 , shapingFocusTint ) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| ENTROPY_SKIP_USD_SCHEMA |
Detailed Description
Section titled “Detailed Description”struct EntropyCanvas::Light;Light component for scene illumination.
Aligned with USD Lux schema (https://openusd.org/release/api/usd_lux_page_front.html).
- Sphere lights: Point/area lights with radius; use ShapingAPI fields for spot behavior
- Distant lights: Directional lights with angular size
Properties are individually addressable via PropertyRegistry for efficient network synchronization (using ENTROPY_FIELD macros).
Direction is derived from the entity’s Transform component.
Public Functions Documentation
Section titled “Public Functions Documentation”function spot
Section titled “function spot”static inline Light spot( float coneAngle, float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f))Create spot light (sphere with shaping).
function sphereArea
Section titled “function sphereArea”static inline Light sphereArea( float radius, float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f))Create sphere light with radius (area light).
function sphere
Section titled “function sphere”static inline Light sphere( float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f))Create default sphere/point light.
function distant
Section titled “function distant”static inline Light distant( float intensity =1.0f, glm::vec3 color =glm::vec3(1.0f))Create distant/directional light (sun-like).
function ENTROPY_REGISTER_TYPE
Section titled “function ENTROPY_REGISTER_TYPE”ENTROPY_REGISTER_TYPE( Light)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( float , range)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( float , bounceFactor)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( bool , castsShadows)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( uint32_t , shadowResolution)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( uint32_t , shadowCascadeCount)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( LightType , lightType)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( glm::vec3 , color)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , intensity)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , exposure) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( bool , enableColorTemperature)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , colorTemperature)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , diffuse)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , specular)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( bool , normalize)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , radius) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , angle) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , shapingConeAngle)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , shapingConeSoftness) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , shapingFocus) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( glm::vec3 , shapingFocusTint)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable ENTROPY_SKIP_USD_SCHEMA
Section titled “variable ENTROPY_SKIP_USD_SCHEMA”ENTROPY_SKIP_USD_SCHEMA;Updated on 2026-01-26 at 17:14:35 -0500