HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdMeshReprDesc Class Reference

#include <mesh.h>

Public Member Functions

 HdMeshReprDesc (HdMeshGeomStyle geomStyle=HdMeshGeomStyleInvalid, HdCullStyle cullStyle=HdCullStyleDontCare, TfToken shadingTerminal=HdMeshReprDescTokens->surfaceShader, bool flatShadingEnabled=true, bool blendWireframeColor=true, bool doubleSided=false, float lineWidth=0, bool useCustomDisplacement=true, bool enableScalarOverride=true)
 
bool IsEmpty () const
 

Public Attributes

HdMeshGeomStyle geomStyle
 The rendering style: draw refined/unrefined, edge, points, etc. More...
 
HdCullStyle cullStyle
 The culling style: draw front faces, back faces, etc. More...
 
TfToken shadingTerminal
 
bool flatShadingEnabled
 Does this mesh want flat shading? More...
 
bool blendWireframeColor
 Should the wireframe color be blended into the color primvar? More...
 
bool doubleSided
 
float lineWidth
 How big (in pixels) should line drawing be? More...
 
bool useCustomDisplacement
 Should this mesh use displacementShader() to displace points? More...
 
bool enableScalarOverride
 

Detailed Description

Descriptor to configure the drawItem(s) for a repr

Definition at line 54 of file mesh.h.

Constructor & Destructor Documentation

HdMeshReprDesc::HdMeshReprDesc ( HdMeshGeomStyle  geomStyle = HdMeshGeomStyleInvalid,
HdCullStyle  cullStyle = HdCullStyleDontCare,
TfToken  shadingTerminal = HdMeshReprDescTokens->surfaceShader,
bool  flatShadingEnabled = true,
bool  blendWireframeColor = true,
bool  doubleSided = false,
float  lineWidth = 0,
bool  useCustomDisplacement = true,
bool  enableScalarOverride = true 
)
inline

Definition at line 56 of file mesh.h.

Member Function Documentation

bool HdMeshReprDesc::IsEmpty ( ) const
inline

Definition at line 76 of file mesh.h.

Member Data Documentation

bool HdMeshReprDesc::blendWireframeColor

Should the wireframe color be blended into the color primvar?

Definition at line 90 of file mesh.h.

HdCullStyle HdMeshReprDesc::cullStyle

The culling style: draw front faces, back faces, etc.

Definition at line 83 of file mesh.h.

bool HdMeshReprDesc::doubleSided

Should this mesh be treated as double-sided? The resolved value is (prim.doubleSided || repr.doubleSided).

Definition at line 93 of file mesh.h.

bool HdMeshReprDesc::enableScalarOverride

Should scalar override be allowed on this drawItem. scalar override allows for visualization of a single float value across a prim.

Definition at line 101 of file mesh.h.

bool HdMeshReprDesc::flatShadingEnabled

Does this mesh want flat shading?

Definition at line 88 of file mesh.h.

HdMeshGeomStyle HdMeshReprDesc::geomStyle

The rendering style: draw refined/unrefined, edge, points, etc.

Definition at line 81 of file mesh.h.

float HdMeshReprDesc::lineWidth

How big (in pixels) should line drawing be?

Definition at line 95 of file mesh.h.

TfToken HdMeshReprDesc::shadingTerminal

Specifies how the fragment color should be computed from surfaceShader; this can be used to render a mesh lit, unlit, unshaded, etc.

Definition at line 86 of file mesh.h.

bool HdMeshReprDesc::useCustomDisplacement

Should this mesh use displacementShader() to displace points?

Definition at line 97 of file mesh.h.


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