#include <FractureToolsStructs.h>
Public Member Functions | |
CutoutParameters () | |
void | setToDefault () |
Public Attributes | |
float | depth |
nvidia::FractureMaterialDesc | materialDesc |
NoiseParameters | backfaceNoise |
NoiseParameters | edgeNoise |
Parameters for a single cutout direction.
FractureTools::CutoutParameters::CutoutParameters | ( | ) | [inline] |
Constructor sets defaults
void FractureTools::CutoutParameters::setToDefault | ( | ) | [inline] |
Set default values:
depth = 1.0f; backfaceNoise.setToDefault(); edgeNoise.setToDefault(); materialDesc.setToDefault();
Describes the characteristics of the backface cutting surface (along the various cutout directions). If the noise is 0, the cutting surface will be a plane. Otherwise, there will be some variation, or roughness, to the surface.
The depth to apply cutout fracturing. 0 has a special value; it means cut all the way through
Describes the characteristics of the perimeter cutting surfaces (for the various cutout directions). If the noise is 0, the cutting surface will smooth. Otherwise, there will be some variation, or roughness, to the surface.
Note: this noise is applied only to the graphics of the cutout chunks. The chunks' collision volumes AND the chunks' children (if fractured further) will NOT be affected by this noise.
nvidia::FractureMaterialDesc FractureTools::CutoutParameters::materialDesc |
Material application descriptor used for the cutout direction. Note: The backface slice will use the U-direction and UV offset specified in each descriptor, however the cutout slices (surrounding each cutout chunk) will ignore these fields (only using the UV scale).