The RenderMaterial handles interactions with render materials.
public class RenderMaterial : Sansar.Script.InstanceInterfaceMembers at a glance
Properties
HasAbsorption
public bool HasAbsorption { get; }Whether or not this material allows changing absorption.
HasApplyGlobalWind
public bool HasApplyGlobalWind { get; }Whether or not this material allows toggling global wind.
HasApplyUvOffsetToAo
public bool HasApplyUvOffsetToAo { get; }Whether or not this material allows toggling UV offset application to ambient occlusion.
HasApplyUvOffsetToDiffuse
public bool HasApplyUvOffsetToDiffuse { get; }Whether or not this material allows toggling UV offset application to diffuse layers.
HasApplyUvOffsetToEmissive
public bool HasApplyUvOffsetToEmissive { get; }Whether or not this material allows toggling UV offset application to emissive.
HasAudioReactAdaptiveDisplacement
public bool HasAudioReactAdaptiveDisplacement { get; }Whether or not this material allows toggling audio reactive adaptive displacement mode.
HasAudioReactAdaptiveFlashEmissive
public bool HasAudioReactAdaptiveFlashEmissive { get; }Whether or not this material allows toggling audio reactive adaptive emissive flash mode.
HasAudioReactDisplacementOnHigh
public bool HasAudioReactDisplacementOnHigh { get; }Whether or not this material allows toggling audio reactive displacement on high frequencies.
HasAudioReactDisplacementOnLow
public bool HasAudioReactDisplacementOnLow { get; }Whether or not this material allows toggling audio reactive displacement on low frequencies.
HasAudioReactDisplacementOnMid
public bool HasAudioReactDisplacementOnMid { get; }Whether or not this material allows toggling audio reactive displacement on mid frequencies.
HasAudioReactEmissiveBrightness
public bool HasAudioReactEmissiveBrightness { get; }Whether or not this material allows toggling audio reactive emissive brightness mode.
HasAudioReactEmissiveColor
public bool HasAudioReactEmissiveColor { get; }Whether or not this material allows toggling audio reactive emissive color mode.
HasAudioReactFlashEmissiveOnHigh
public bool HasAudioReactFlashEmissiveOnHigh { get; }Whether or not this material allows toggling audio reactive flash emissive on high frequencies.
HasAudioReactFlashEmissiveOnLow
public bool HasAudioReactFlashEmissiveOnLow { get; }Whether or not this material allows toggling audio reactive flash emissive on low frequencies.
HasAudioReactFlashEmissiveOnMid
public bool HasAudioReactFlashEmissiveOnMid { get; }Whether or not this material allows toggling audio reactive flash emissive on mid frequencies.
HasAudioReactFlipbookFrame
public bool HasAudioReactFlipbookFrame { get; }Whether or not this material allows toggling audio reactive flipbook frame advancement.
HasBladeDensity
public bool HasBladeDensity { get; }Whether or not this material allows changing grass blade density.
HasBladeHeight
public bool HasBladeHeight { get; }Whether or not this material allows changing grass blade height.
HasBladeWidth
public bool HasBladeWidth { get; }Whether or not this material allows changing grass blade width.
HasBlendDisplacementFlipbook
public bool HasBlendDisplacementFlipbook { get; }Whether or not this material allows toggling displacement flipbook blending.
HasBlendOnDisplacementLoop
public bool HasBlendOnDisplacementLoop { get; }Whether or not this material allows toggling blend on displacement loop.
HasBrightness
public bool HasBrightness { get; }Whether or not this material allows changing brightness.
HasDirtRoughness
public bool HasDirtRoughness { get; }Whether or not this material allows changing grass dirt roughness.
HasDrawAfterimages
public bool HasDrawAfterimages { get; }Whether or not this material allows toggling afterimages drawing.
HasEmissiveIntensity
public bool HasEmissiveIntensity { get; }Whether or not this material allows changing emissive intensity.
HasFlipbookFrame
public bool HasFlipbookFrame { get; }Whether or not this material allows flipbook animation.
HasFlipbookIndex
public bool HasFlipbookIndex { get; }Whether or not this material allows indexed flipbook animation.
HasFurDensity
public bool HasFurDensity { get; }Whether or not this material allows changing fur density.
HasFurLength
public bool HasFurLength { get; }Whether or not this material allows changing fur length.
HasFurRootColor
public bool HasFurRootColor { get; }Whether or not this material allows changing fur root color.
HasFurThickness
public bool HasFurThickness { get; }Whether or not this material allows changing fur thickness.
HasFurTipColor
public bool HasFurTipColor { get; }Whether or not this material allows changing fur tip color.
HasGrassDensity
public bool HasGrassDensity { get; }Whether or not this material allows changing grass density.
HasGrassDirtColor
public bool HasGrassDirtColor { get; }Whether or not this material allows changing grass dirt color.
HasGrassLength
public bool HasGrassLength { get; }Whether or not this material allows changing grass length.
HasGrassRootColor
public bool HasGrassRootColor { get; }Whether or not this material allows changing grass root color.
HasGrassThickness
public bool HasGrassThickness { get; }Whether or not this material allows changing grass thickness.
HasGrassTipColor
public bool HasGrassTipColor { get; }Whether or not this material allows changing grass tip color.
HasGravityStrength
public bool HasGravityStrength { get; }Whether or not this material allows changing fur gravity strength.
HasLoopDisplacementFlipbook
public bool HasLoopDisplacementFlipbook { get; }Whether or not this material allows toggling displacement flipbook looping.
HasLoopFlipbook
public bool HasLoopFlipbook { get; }Whether or not this material allows toggling flipbook looping.
HasPingPongDisplacementFlipbook
public bool HasPingPongDisplacementFlipbook { get; }Whether or not this material allows toggling displacement flipbook ping-pong.
HasReceiveReflection
public bool HasReceiveReflection { get; }Whether or not this material allows toggling receivership of reflections.
HasRenderBlades
public bool HasRenderBlades { get; }Whether or not this material allows toggling grass blade rendering.
HasRenderFins
public bool HasRenderFins { get; }Whether or not this material allows toggling grass fin rendering.
HasRenderShells
public bool HasRenderShells { get; }Whether or not this material allows toggling grass shell rendering.
HasRoughness
public bool HasRoughness { get; }Whether or not this material allows changing roughness.
HasScrollAlbedo
public bool HasScrollAlbedo { get; }Whether or not this material allows toggling albedo scrolling.
HasScrollAo
public bool HasScrollAo { get; }Whether or not this material allows toggling ambient occlusion scrolling.
HasScrollDisplacement
public bool HasScrollDisplacement { get; }Whether or not this material allows toggling displacement scrolling.
HasScrollDisplacementFactor
public bool HasScrollDisplacementFactor { get; }Whether or not this material allows toggling displacement factor scrolling.
HasScrollEmissive
public bool HasScrollEmissive { get; }Whether or not this material allows toggling emission scrolling.
HasScrollMask
public bool HasScrollMask { get; }Whether or not this material allows toggling mask scrolling.
HasScrollMetalness
public bool HasScrollMetalness { get; }Whether or not this material allows toggling metalness scrolling.
HasScrollNormalRoughness
public bool HasScrollNormalRoughness { get; }Whether or not this material allows toggling normal/roughness scrolling.
HasSelfShadowStrength
public bool HasSelfShadowStrength { get; }Whether or not this material allows changing self shadow strength.
HasShadowCasting
public bool HasShadowCasting { get; }Whether or not this material allows toggling shadow casting.
HasShellHeight
public bool HasShellHeight { get; }Whether or not this material allows changing grass shell height.
HasTint
public bool HasTint { get; }Whether or not this material allows tinting.
HasUseCustomBladeShape
public bool HasUseCustomBladeShape { get; }Whether or not this material allows toggling the custom grass blade shape.
HasVatBlendAnimLoop
public bool HasVatBlendAnimLoop { get; }Whether or not this material allows toggling the blending of animation loops.
HasVATFrame
public bool HasVATFrame { get; }Whether or not this material allows VAT animation offset frame.
HasVatLoopAnim
public bool HasVatLoopAnim { get; }Whether or not this material allows toggling animation looping.
HasVATLoopRunLength
public bool HasVATLoopRunLength { get; }Whether or not this material allows VAT animation loop run length.
HasVATLoopStartFrame
public bool HasVATLoopStartFrame { get; }Whether or not this material allows VAT animation loop start frame.
HasVatPingPongAnim
public bool HasVatPingPongAnim { get; }Whether or not this material allows toggling animation ping-pong.
HasVATStepRate
public bool HasVATStepRate { get; }Whether or not this material allows VAT animation step rate.
HasWindFlowScale
public bool HasWindFlowScale { get; }Whether or not this material allows changing wind flow scale.
HasWindStrength
public bool HasWindStrength { get; }Whether or not this material allows changing wind strength.
Index
public int Index { get; }Gets the internal index for the material
Name
public string Name { get; }Gets the name of the material
ShaderType
public string ShaderType { get; }Gets a string identifying the type of shader.
Methods
GetProperties
public MaterialProperties GetProperties()Get the MaterialProperties
Returns: MaterialProperties
SetProperties
public void SetProperties(MaterialProperties properties)Set new values for MaterialProperties
| Parameter | Type | Description |
|---|---|---|
properties | MaterialProperties | properties |
public void SetProperties(
MaterialProperties properties,
Action<Sansar.Script.OperationCompleteEvent> handler
)Set new values for MaterialProperties
| Parameter | Type | Description |
|---|---|---|
properties | MaterialProperties | properties |
handler | Action<Sansar.Script.OperationCompleteEvent> | Handler to be called when the event completes. |
public void SetProperties(
MaterialProperties properties,
float timeInSeconds,
InterpolationMode interpolationMode
)Set new values for MaterialProperties interpolated over time
| Parameter | Type | Description |
|---|---|---|
properties | MaterialProperties | properties |
timeInSeconds | float | timeInSeconds |
interpolationMode | InterpolationMode | timeInSeconds |
public void SetProperties(
MaterialProperties properties,
float timeInSeconds,
InterpolationMode interpolationMode,
Action<Sansar.Script.OperationCompleteEvent> handler
)Set new values for MaterialProperties interpolated over time
| Parameter | Type | Description |
|---|---|---|
properties | MaterialProperties | properties |
timeInSeconds | float | timeInSeconds |
interpolationMode | InterpolationMode | timeInSeconds |
handler | Action<Sansar.Script.OperationCompleteEvent> | Handler to be called when the event completes. |
ToString
public override string ToString()A string representation of this object.
Returns: string — A string representation of this object.
Remarks
The format of this string may change between releases.
Generated from the Sansar 47.10.0 client ScriptApi snapshot.