Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Attributes | List of all members
foray::scene::SimpleLight Struct Reference

Describes a simplified light source. More...

#include <foray_lights.hpp>

Public Attributes

glm::vec3 Color
 Linear RGB color of emitted light.
 
ELightType Type
 Type (see SimplifiedLightType enum values)
 
glm::vec3 PosOrDir
 Position or direction, interprete based on type.
 
fp32_t Intensity = 1.f
 Intensity (candela for point type, lux in directional lights)
 

Detailed Description

Describes a simplified light source.

Member Data Documentation

◆ Color

glm::vec3 foray::scene::SimpleLight::Color

Linear RGB color of emitted light.

◆ Intensity

fp32_t foray::scene::SimpleLight::Intensity = 1.f

Intensity (candela for point type, lux in directional lights)

◆ PosOrDir

glm::vec3 foray::scene::SimpleLight::PosOrDir

Position or direction, interprete based on type.

◆ Type

ELightType foray::scene::SimpleLight::Type

Type (see SimplifiedLightType enum values)


The documentation for this struct was generated from the following file: