Lysa  0.0
Lysa 3D Engine
Environment Struct Reference

Detailed Description

Represents the environmental settings of the scene.

+ Inheritance diagram for Environment:

Public Member Functions

 Environment () = default
 
 Environment (const float3 &color, const float intensity)
 
- Public Member Functions inherited from UnmanagedResource
 UnmanagedResource ()
 
 UnmanagedResource (const Resource &other)
 
- Public Member Functions inherited from Resource
bool operator== (const Resource &other) const
 
 Resource () = default
 
 Resource (const unique_id id)
 
virtual ~Resource () = default
 

Public Attributes

float3 color {1.0f, 1.0f, 1.0f}
 
float intensity {0.0f}
 
- Public Attributes inherited from Resource
unique_id id {INVALID_ID}
 

Constructor & Destructor Documentation

Environment ( )
default

Default constructor for Environment.

Environment ( const float3 &  color,
const float  intensity 
)
inline

Constructs an Environment with specific color and intensity.

Parameters
colorThe color of the ambient light.
intensityThe intensity of the ambient light.

Member Data Documentation

float3 color {1.0f, 1.0f, 1.0f}

The color of the ambient light.

float intensity {0.0f}

The intensity of the ambient light.