Blender V4.3
blender::eevee::SphereProbeAtlasCoord Struct Reference

#include <eevee_lightprobe.hh>

Classes

class  LocationFinder
 

Public Member Functions

void free ()
 
int area_extent (int mip_lvl=0) const
 
int2 area_location () const
 
int2 area_offset (int mip_lvl=0) const
 
SphereProbeUvArea as_sampling_coord () const
 
SphereProbePixelArea as_write_coord (int mip_lvl) const
 

Public Attributes

int atlas_layer = -1
 
int subdivision_lvl = -1
 
int area_index = -1
 

Detailed Description

Definition at line 30 of file eevee_lightprobe.hh.

Member Function Documentation

◆ area_extent()

int blender::eevee::SphereProbeAtlasCoord::area_extent ( int mip_lvl = 0) const
inline

Definition at line 45 of file eevee_lightprobe.hh.

References SPHERE_PROBE_ATLAS_RES, and subdivision_lvl.

Referenced by area_offset(), as_sampling_coord(), and as_write_coord().

◆ area_location()

int2 blender::eevee::SphereProbeAtlasCoord::area_location ( ) const
inline

◆ area_offset()

int2 blender::eevee::SphereProbeAtlasCoord::area_offset ( int mip_lvl = 0) const
inline

Definition at line 58 of file eevee_lightprobe.hh.

References area_extent(), and area_location().

Referenced by as_sampling_coord(), and as_write_coord().

◆ as_sampling_coord()

◆ as_write_coord()

◆ free()

void blender::eevee::SphereProbeAtlasCoord::free ( )
inline

Release the current atlas space held by this probe.

Definition at line 39 of file eevee_lightprobe.hh.

References atlas_layer.

Referenced by blender::eevee::LightProbeModule::sync_world().

Member Data Documentation

◆ area_index

int blender::eevee::SphereProbeAtlasCoord::area_index = -1

Area index within the layer with the according subdivision level.

Definition at line 36 of file eevee_lightprobe.hh.

Referenced by area_location(), and blender::eevee::SphereProbeAtlasCoord::LocationFinder::mark_space_used().

◆ atlas_layer

int blender::eevee::SphereProbeAtlasCoord::atlas_layer = -1

On which layer of the texture array is this reflection probe stored.

Definition at line 32 of file eevee_lightprobe.hh.

Referenced by as_sampling_coord(), as_write_coord(), free(), and blender::eevee::SphereProbeAtlasCoord::LocationFinder::mark_space_used().

◆ subdivision_lvl

int blender::eevee::SphereProbeAtlasCoord::subdivision_lvl = -1

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