Rebel Fork Framework
Urho3D::LightmapChartRegion Struct Reference

Region on the lightmap chart. More...

#include <Urho3D/Glow/LightmapCharter.h>

Public Member Functions

 LightmapChartRegion ()=default
 Construct default.
 
 LightmapChartRegion (unsigned index, const IntVector2 &position, const IntVector2 &size, unsigned maxSize)
 Construct actual region.
 
Vector2 GetScale () const
 Return lightmap scale of the region.
 
Vector2 GetOffset () const
 Return lightmap offset of the region.
 
Vector4 GetScaleOffset () const
 Return lightmap scale & offset vector.
 

Public Attributes

unsigned chartIndex_
 Lightmap chart index.
 
IntRect rectTexels_
 Lightmap rectangle on the chart (in texels).
 
Rect rectUV_
 Lightmap rectangle on the chart (in normalized coordinates).
 

Detailed Description

Region on the lightmap chart.


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