#include <rawVolModel.h>
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). | |
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 40 of file rawVolModel.h.
0.9 by
1.5.8