Material that uses Shader Bricks to generate its shader.
Inherits :
DAZ Script | |
---|---|
DzBrickMaterial | convertDefaultMaterial ( DzDefaultMaterial mat ) |
DzBrickMaterial | convertUberIrayMaterial ( DzMaterial mat ) |
DAZ Script |
---|
DzBrickMaterial () |
DAZ Script | |
---|---|
Number | addBrick ( DzShaderBrick brick ) |
Boolean | allowsAutoBake () |
void | applyToScene () |
void | deleteAllBricks () |
void | deleteBrick ( Number id ) |
void | deleteBrick ( DzShaderBrick brick ) |
void | endEditMode () |
DzShaderBrick | getBrick ( Number id ) |
Array | getBrickIDs () |
DzBrickSet | getBrickSet ( Number i ) |
String | getBrickUserName () |
String | getExtension () |
Number | getNumBrickSets () |
void | invalidateSets () |
Boolean | isInEditMode () |
void | setBrickUserName ( String name ) |
void | setMaterialName ( String name ) |
void | setNeedsPtexParams ( Boolean onoff ) |
void | setNeedsTangentSpaceParams ( Boolean onoff ) |
void | startEditMode () |
void | updateIdentifierOnSetInvalidate ( Boolean onOff ) |
Boolean | usesLocalShaderSpace () |
void | brickAdded ( DzShaderBrick brick ) |
void | brickRemoved ( DzShaderBrick brick ) |
void | generateFilesFinished () |
void | generateFilesStarted () |
TODO: Add detailed description.
DzBrickMaterial : convertDefaultMaterial( DzDefaultMaterial mat )
Converts the given default material to a brick material.
Parameter(s):
DzBrickMaterial : convertUberIrayMaterial( DzMaterial mat )
Converts the given Uber Iray material to a brick material.
Parameter(s):
Number : addBrick( DzShaderBrick brick )
Adds the given brick to this brick material.
Parameter(s):
Return Value:
Return Value:
true
if this brick material allows auto-baking, otherwise false
.void : applyToScene()
Apply a copy of this material to all selected materials in the scene.
void : deleteAllBricks()
Deletes all bricks in this material.
void : deleteBrick( Number id )
Deletes the brick with the given id from the material.
Parameter(s):
void : deleteBrick( DzShaderBrick brick )
Deletes the given brick from the material.
Parameter(s):
void : endEditMode()
Takes this brick material out of edit mode.
DzShaderBrick : getBrick( Number id )
Parameter(s):
Return Value:
Array : getBrickIDs()
Return Value:
DzBrickSet : getBrickSet( Number i )
Parameter(s):
Return Value:
Return Value:
String : getExtension()
Return Value:
Return Value:
void : invalidateSets()
Invalidates the brick sets, causing them to be rebuilt.
Boolean : isInEditMode()
Return Value:
true
if this brick material is currently in edit mode, otherwise false
.void : setBrickUserName( String name )
Sets the user name of this brick material.
Parameter(s):
void : setMaterialName( String name )
Sets the name for this brick material.
Parameter(s):
void : setNeedsPtexParams( Boolean onoff )
Sets whether or not this brick material needs Ptex parameters.
Parameter(s):
true
, this brick material needs Ptex parameters.void : setNeedsTangentSpaceParams( Boolean onoff )
Sets whether this brick material needs tangent space parameters.
Parameter(s):
true
, this brick material will need tangent space parameters.void : startEditMode()
Puts this brick material in edit mode.
void : updateIdentifierOnSetInvalidate( Boolean onOff )
Sets whether the identifier is updated when this brick material is invalidated.
Parameter(s):
true
, the identifier will be updated when this brick material is invalidated.Boolean : usesLocalShaderSpace()
Return Value:
true
if this brick material uses local shader space.void : brickAdded( DzShaderBrick brick )
Signature:“brickAdded(DzShaderBrick*)”
Emitted when a brick is added to this brick material.
Parameter(s):
void : brickRemoved( DzShaderBrick brick )
Signature:“brickRemoved(DzShaderBrick*)”
Emitted when a brick is removed from this brick material.
Parameter(s):
void : generateFilesFinished()
Emitted when file generation is finished.
void : generateFilesStarted()
Emitted when file generation is started.