Equalizer  1.6.1
Public Attributes | List of all members
eVolve::DataInTextureDimensions Struct Reference

Structure that contain actual dimensions of data that is stored in volume texture. More...

#include <rawVolModel.h>

+ Collaboration diagram for eVolve::DataInTextureDimensions:

Public Attributes

float W
 Width of data in texture (0..1].
 
float H
 Height of data in texture (0..1].
 
float D
 Depth of data in texture (0..1].
 
float Do
 Depth offset (start of range)
 
float Db
 Depth border (necessary for preintegration)
 

Detailed Description

Structure that contain actual dimensions of data that is stored in volume texture.

It assumes that volume fills the cube [-1,-1,-1]..[1,1,1] and the texture coordinates scaled to [0,0,0]..[1,1,1] but volume itself can be less then whole texture. Correct coordinates of volume stored in texture could be computed as:

Xn = X * W Yn = Y * H Zn = Db + (Z - Do) * D

so X and Y just scaled, but Z should be modifyed according to proper range.

Definition at line 52 of file rawVolModel.h.


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