LightsprintSDK 2021.08.08
rr::RRObject::LodInfo Struct Reference

#include <RRObject.h>

Public Attributes

const void * base
 
unsigned level
 
RRReal distanceMin
 
RRReal distanceMax
 

Detailed Description

Information about single object, its place in hierarchy of LODs.

Objects with the same base represent the same entity, they are levels of detail (LOD) of the same entity. If they share base but differ in level, they are different LODs of the same entity and they don't shadow and illuminate each other. Only level 0 shadows and illuminates other entities. If they share both base and level, they are the same representation of the same entity, i.e. they shadow and illuminate each other.

Member Data Documentation

◆ base

const void* rr::RRObject::LodInfo::base

Objects with the same base represent the same entity, they are levels of detail (LOD) of the same entity.

◆ level

unsigned rr::RRObject::LodInfo::level

Objects that share base but differ in level are different LODs of the same entity and they don't shadow and illuminate each other. Only level 0 shadows and illuminates other entities.

◆ distanceMin

RRReal rr::RRObject::LodInfo::distanceMin

Object is rendered only if its distance satisfies distanceMin<=distance<distanceMax.

◆ distanceMax

RRReal rr::RRObject::LodInfo::distanceMax

Object is rendered only if its distance satisfies distanceMin<=distance<distanceMax.