![]() |
VR-Vantage 2.8 API Documentation
|
DtMaterial class declaration. More...
Go to the source code of this file.
Classes | |
| class | makVrv::DtMaterialUtils |
| Utility class for materials. More... | |
Namespaces | |
| namespace | makVrv |
| Contains the makVrv::Dt2DArcFacade class declaration. | |
Macros | |
| #define | CPU_SIDE_COMPILATION 1 |
| structure that is packed for consumption by GPU for indirect rendering contains the material properties for a single geometry Each 'model' can have multiple multiple geometries The layout of this class matches the equivalent structure in the indirect rendering shaders. | |
Typedefs | |
| typedef std::vector< Material > | makVrv::DtIndirectMaterialVector |
| Each model type can have a number of geometries, each with an own material. | |
Functions | |
| DT_DLL_VRVINDIRECTRENDERING std::ostream & | makVrv::operator<< (std::ostream &o, const Material &material) |
DtMaterial class declaration.
| #define CPU_SIDE_COMPILATION 1 |
structure that is packed for consumption by GPU for indirect rendering contains the material properties for a single geometry Each 'model' can have multiple multiple geometries The layout of this class matches the equivalent structure in the indirect rendering shaders.
Therefore, ***be CAREFUL if you extend/add variables to this class***, because you must change the corresponding structure in the shaders as well. Especially, be careful if you declare virtual methods/inherit this class (***best avoided***), because that will implicitly add 4/8 bytes for the vtable pointer that you need to account for in the shaders (not to mention, wasted GPU memory space)