vsg
1.1.0
VulkanSceneGraph library
|
GeometryInfo struct provides geometry related settings supported by Builder. More...
#include <Builder.h>
Public Member Functions | |
template<typename T > | |
GeometryInfo (const t_box< T > &bb) | |
template<typename T > | |
GeometryInfo (const t_sphere< T > &sp) | |
template<typename T > | |
void | set (const t_box< T > &bb) |
template<typename T > | |
void | set (const t_sphere< T > &sp) |
bool | operator< (const GeometryInfo &rhs) const |
Public Attributes | |
vec3 | position = {0.0f, 0.0f, 0.0f} |
vec3 | dx = {1.0f, 0.0f, 0.0f} |
vec3 | dy = {0.0f, 1.0f, 0.0f} |
vec3 | dz = {0.0f, 0.0f, 1.0f} |
vec4 | color = {1.0f, 1.0f, 1.0f, 1.0f} |
mat4 | transform |
bool | cullNode = false |
cullNode flag indicates whether a CullNode should decorate the creted subgraph | |
ref_ptr< Data > | positions |
when using geometry instancing use vec3Array with vec3{x,y,z} and for billboards use vec4Array with vec4{x,y,z,scaleDistance} | |
ref_ptr< Data > | colors |
GeometryInfo struct provides geometry related settings supported by Builder.