Rebel Fork Framework
Urho3D::LightmapChartBakedDirect Struct Reference

Direct light accumulated for given lightmap chart. More...

#include <Urho3D/Glow/LightTracer.h>

Public Member Functions

 LightmapChartBakedDirect ()=default
 Construct default.
 
 LightmapChartBakedDirect (unsigned lightmapSize)
 Construct valid.
 
IntVector2 GetNearestLocation (const Vector2 &uv) const
 Return nearest point location by UV.
 
const Vector3GetSurfaceLight (const IntVector2 &location) const
 Return surface light for location.
 
const Vector3GetAlbedo (const IntVector2 &location) const
 Return albedo for location.
 

Public Attributes

unsigned lightmapSize_ {}
 Size of lightmap chart.
 
float realLightmapSize_ {}
 Size of lightmap chart as float.
 
ea::vector< Vector3directLight_
 Incoming direct light from completely backed lights, to be baked in lightmap.
 
ea::vector< Vector3surfaceLight_
 Incoming direct light from all static lights multiplied with albedo, used to calculate indirect lighting.
 
ea::vector< Vector3albedo_
 Albedo of the surface.
 

Detailed Description

Direct light accumulated for given lightmap chart.


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