Skip to content

Get Sansar

Script API

RenderMaterial

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Script.InstanceInterface Added in 37.0.0

The RenderMaterial handles interactions with render materials.

public class RenderMaterial : Sansar.Script.InstanceInterface

Members at a glance

KindMembers
PropertiesHasAbsorption · HasApplyGlobalWind New in 47.10.0 · HasApplyUvOffsetToAo · HasApplyUvOffsetToDiffuse · HasApplyUvOffsetToEmissive · HasAudioReactAdaptiveDisplacement · HasAudioReactAdaptiveFlashEmissive · HasAudioReactDisplacementOnHigh · HasAudioReactDisplacementOnLow · HasAudioReactDisplacementOnMid · HasAudioReactEmissiveBrightness · HasAudioReactEmissiveColor · HasAudioReactFlashEmissiveOnHigh · HasAudioReactFlashEmissiveOnLow · HasAudioReactFlashEmissiveOnMid · HasAudioReactFlipbookFrame · HasBladeDensity New in 47.10.0 · HasBladeHeight New in 47.10.0 · HasBladeWidth New in 47.10.0 · HasBlendDisplacementFlipbook · HasBlendOnDisplacementLoop · HasBrightness · HasDirtRoughness New in 47.10.0 · HasDrawAfterimages · HasEmissiveIntensity · HasFlipbookFrame · HasFlipbookIndex · HasFurDensity New in 47.10.0 · HasFurLength New in 47.10.0 · HasFurRootColor New in 47.10.0 · HasFurThickness New in 47.10.0 · HasFurTipColor New in 47.10.0 · HasGrassDensity New in 47.10.0 · HasGrassDirtColor New in 47.10.0 · HasGrassLength New in 47.10.0 · HasGrassRootColor New in 47.10.0 · HasGrassThickness New in 47.10.0 · HasGrassTipColor New in 47.10.0 · HasGravityStrength New in 47.10.0 · HasLoopDisplacementFlipbook · HasLoopFlipbook · HasPingPongDisplacementFlipbook · HasReceiveReflection · HasRenderBlades New in 47.10.0 · HasRenderFins New in 47.10.0 · HasRenderShells New in 47.10.0 · HasRoughness New in 47.10.0 · HasScrollAlbedo · HasScrollAo · HasScrollDisplacement · HasScrollDisplacementFactor · HasScrollEmissive · HasScrollMask · HasScrollMetalness · HasScrollNormalRoughness · HasSelfShadowStrength New in 47.10.0 · HasShadowCasting · HasShellHeight New in 47.10.0 · HasTint · HasUseCustomBladeShape New in 47.10.0 · HasVatBlendAnimLoop · HasVATFrame · HasVatLoopAnim · HasVATLoopRunLength · HasVATLoopStartFrame · HasVatPingPongAnim · HasVATStepRate · HasWindFlowScale New in 47.10.0 · HasWindStrength New in 47.10.0 · Index · Name · ShaderType
MethodsGetProperties · SetProperties · ToString

Properties

HasAbsorption

Added in 37.0.0
public bool HasAbsorption { get; }

Whether or not this material allows changing absorption.

HasApplyGlobalWind

New in 47.10.0
public bool HasApplyGlobalWind { get; }

Whether or not this material allows toggling global wind.

HasApplyUvOffsetToAo

Added in 46.5.0
public bool HasApplyUvOffsetToAo { get; }

Whether or not this material allows toggling UV offset application to ambient occlusion.

HasApplyUvOffsetToDiffuse

Added in 46.5.0
public bool HasApplyUvOffsetToDiffuse { get; }

Whether or not this material allows toggling UV offset application to diffuse layers.

HasApplyUvOffsetToEmissive

Added in 46.5.0
public bool HasApplyUvOffsetToEmissive { get; }

Whether or not this material allows toggling UV offset application to emissive.

HasAudioReactAdaptiveDisplacement

Added in 46.5.0
public bool HasAudioReactAdaptiveDisplacement { get; }

Whether or not this material allows toggling audio reactive adaptive displacement mode.

HasAudioReactAdaptiveFlashEmissive

Added in 46.5.0
public bool HasAudioReactAdaptiveFlashEmissive { get; }

Whether or not this material allows toggling audio reactive adaptive emissive flash mode.

HasAudioReactDisplacementOnHigh

Added in 46.5.0
public bool HasAudioReactDisplacementOnHigh { get; }

Whether or not this material allows toggling audio reactive displacement on high frequencies.

HasAudioReactDisplacementOnLow

Added in 46.5.0
public bool HasAudioReactDisplacementOnLow { get; }

Whether or not this material allows toggling audio reactive displacement on low frequencies.

HasAudioReactDisplacementOnMid

Added in 46.5.0
public bool HasAudioReactDisplacementOnMid { get; }

Whether or not this material allows toggling audio reactive displacement on mid frequencies.

HasAudioReactEmissiveBrightness

Added in 46.5.0
public bool HasAudioReactEmissiveBrightness { get; }

Whether or not this material allows toggling audio reactive emissive brightness mode.

HasAudioReactEmissiveColor

Added in 46.5.0
public bool HasAudioReactEmissiveColor { get; }

Whether or not this material allows toggling audio reactive emissive color mode.

HasAudioReactFlashEmissiveOnHigh

Added in 46.5.0
public bool HasAudioReactFlashEmissiveOnHigh { get; }

Whether or not this material allows toggling audio reactive flash emissive on high frequencies.

HasAudioReactFlashEmissiveOnLow

Added in 46.5.0
public bool HasAudioReactFlashEmissiveOnLow { get; }

Whether or not this material allows toggling audio reactive flash emissive on low frequencies.

HasAudioReactFlashEmissiveOnMid

Added in 46.5.0
public bool HasAudioReactFlashEmissiveOnMid { get; }

Whether or not this material allows toggling audio reactive flash emissive on mid frequencies.

HasAudioReactFlipbookFrame

Added in 46.5.0
public bool HasAudioReactFlipbookFrame { get; }

Whether or not this material allows toggling audio reactive flipbook frame advancement.

HasBladeDensity

New in 47.10.0
public bool HasBladeDensity { get; }

Whether or not this material allows changing grass blade density.

HasBladeHeight

New in 47.10.0
public bool HasBladeHeight { get; }

Whether or not this material allows changing grass blade height.

HasBladeWidth

New in 47.10.0
public bool HasBladeWidth { get; }

Whether or not this material allows changing grass blade width.

HasBlendDisplacementFlipbook

Added in 46.5.0
public bool HasBlendDisplacementFlipbook { get; }

Whether or not this material allows toggling displacement flipbook blending.

HasBlendOnDisplacementLoop

Added in 46.5.0
public bool HasBlendOnDisplacementLoop { get; }

Whether or not this material allows toggling blend on displacement loop.

HasBrightness

Added in 37.0.0
public bool HasBrightness { get; }

Whether or not this material allows changing brightness.

HasDirtRoughness

New in 47.10.0
public bool HasDirtRoughness { get; }

Whether or not this material allows changing grass dirt roughness.

HasDrawAfterimages

Added in 46.5.0
public bool HasDrawAfterimages { get; }

Whether or not this material allows toggling afterimages drawing.

HasEmissiveIntensity

Added in 37.0.0
public bool HasEmissiveIntensity { get; }

Whether or not this material allows changing emissive intensity.

HasFlipbookFrame

Added in 37.0.0
public bool HasFlipbookFrame { get; }

Whether or not this material allows flipbook animation.

HasFlipbookIndex

Added in 46.5.0
public bool HasFlipbookIndex { get; }

Whether or not this material allows indexed flipbook animation.

HasFurDensity

New in 47.10.0
public bool HasFurDensity { get; }

Whether or not this material allows changing fur density.

HasFurLength

New in 47.10.0
public bool HasFurLength { get; }

Whether or not this material allows changing fur length.

HasFurRootColor

New in 47.10.0
public bool HasFurRootColor { get; }

Whether or not this material allows changing fur root color.

HasFurThickness

New in 47.10.0
public bool HasFurThickness { get; }

Whether or not this material allows changing fur thickness.

HasFurTipColor

New in 47.10.0
public bool HasFurTipColor { get; }

Whether or not this material allows changing fur tip color.

HasGrassDensity

New in 47.10.0
public bool HasGrassDensity { get; }

Whether or not this material allows changing grass density.

HasGrassDirtColor

New in 47.10.0
public bool HasGrassDirtColor { get; }

Whether or not this material allows changing grass dirt color.

HasGrassLength

New in 47.10.0
public bool HasGrassLength { get; }

Whether or not this material allows changing grass length.

HasGrassRootColor

New in 47.10.0
public bool HasGrassRootColor { get; }

Whether or not this material allows changing grass root color.

HasGrassThickness

New in 47.10.0
public bool HasGrassThickness { get; }

Whether or not this material allows changing grass thickness.

HasGrassTipColor

New in 47.10.0
public bool HasGrassTipColor { get; }

Whether or not this material allows changing grass tip color.

HasGravityStrength

New in 47.10.0
public bool HasGravityStrength { get; }

Whether or not this material allows changing fur gravity strength.

HasLoopDisplacementFlipbook

Added in 46.5.0
public bool HasLoopDisplacementFlipbook { get; }

Whether or not this material allows toggling displacement flipbook looping.

HasLoopFlipbook

Added in 46.5.0
public bool HasLoopFlipbook { get; }

Whether or not this material allows toggling flipbook looping.

HasPingPongDisplacementFlipbook

Added in 46.5.0
public bool HasPingPongDisplacementFlipbook { get; }

Whether or not this material allows toggling displacement flipbook ping-pong.

HasReceiveReflection

Added in 46.5.0
public bool HasReceiveReflection { get; }

Whether or not this material allows toggling receivership of reflections.

HasRenderBlades

New in 47.10.0
public bool HasRenderBlades { get; }

Whether or not this material allows toggling grass blade rendering.

HasRenderFins

New in 47.10.0
public bool HasRenderFins { get; }

Whether or not this material allows toggling grass fin rendering.

HasRenderShells

New in 47.10.0
public bool HasRenderShells { get; }

Whether or not this material allows toggling grass shell rendering.

HasRoughness

New in 47.10.0
public bool HasRoughness { get; }

Whether or not this material allows changing roughness.

HasScrollAlbedo

Added in 46.5.0
public bool HasScrollAlbedo { get; }

Whether or not this material allows toggling albedo scrolling.

HasScrollAo

Added in 46.5.0
public bool HasScrollAo { get; }

Whether or not this material allows toggling ambient occlusion scrolling.

HasScrollDisplacement

Added in 46.5.0
public bool HasScrollDisplacement { get; }

Whether or not this material allows toggling displacement scrolling.

HasScrollDisplacementFactor

Added in 46.5.0
public bool HasScrollDisplacementFactor { get; }

Whether or not this material allows toggling displacement factor scrolling.

HasScrollEmissive

Added in 46.5.0
public bool HasScrollEmissive { get; }

Whether or not this material allows toggling emission scrolling.

HasScrollMask

Added in 46.5.0
public bool HasScrollMask { get; }

Whether or not this material allows toggling mask scrolling.

HasScrollMetalness

Added in 46.5.0
public bool HasScrollMetalness { get; }

Whether or not this material allows toggling metalness scrolling.

HasScrollNormalRoughness

Added in 46.5.0
public bool HasScrollNormalRoughness { get; }

Whether or not this material allows toggling normal/roughness scrolling.

HasSelfShadowStrength

New in 47.10.0
public bool HasSelfShadowStrength { get; }

Whether or not this material allows changing self shadow strength.

HasShadowCasting

Added in 46.5.0
public bool HasShadowCasting { get; }

Whether or not this material allows toggling shadow casting.

HasShellHeight

New in 47.10.0
public bool HasShellHeight { get; }

Whether or not this material allows changing grass shell height.

HasTint

Added in 37.0.0
public bool HasTint { get; }

Whether or not this material allows tinting.

HasUseCustomBladeShape

New in 47.10.0
public bool HasUseCustomBladeShape { get; }

Whether or not this material allows toggling the custom grass blade shape.

HasVatBlendAnimLoop

Added in 46.5.0
public bool HasVatBlendAnimLoop { get; }

Whether or not this material allows toggling the blending of animation loops.

HasVATFrame

Added in 46.5.0
public bool HasVATFrame { get; }

Whether or not this material allows VAT animation offset frame.

HasVatLoopAnim

Added in 46.5.0
public bool HasVatLoopAnim { get; }

Whether or not this material allows toggling animation looping.

HasVATLoopRunLength

Added in 46.5.0
public bool HasVATLoopRunLength { get; }

Whether or not this material allows VAT animation loop run length.

HasVATLoopStartFrame

Added in 46.5.0
public bool HasVATLoopStartFrame { get; }

Whether or not this material allows VAT animation loop start frame.

HasVatPingPongAnim

Added in 46.5.0
public bool HasVatPingPongAnim { get; }

Whether or not this material allows toggling animation ping-pong.

HasVATStepRate

Added in 46.5.0
public bool HasVATStepRate { get; }

Whether or not this material allows VAT animation step rate.

HasWindFlowScale

New in 47.10.0
public bool HasWindFlowScale { get; }

Whether or not this material allows changing wind flow scale.

HasWindStrength

New in 47.10.0
public bool HasWindStrength { get; }

Whether or not this material allows changing wind strength.

Index

Added in 37.0.0
public int Index { get; }

Gets the internal index for the material

Name

Added in 37.0.0
public string Name { get; }

Gets the name of the material

ShaderType

Added in 37.0.0
public string ShaderType { get; }

Gets a string identifying the type of shader.

Methods

GetProperties

Added in 37.0.0
public MaterialProperties GetProperties()

Get the MaterialProperties

Returns: MaterialProperties

SetProperties

Added in 37.0.0
public void SetProperties(MaterialProperties properties)

Set new values for MaterialProperties

ParameterTypeDescription
propertiesMaterialPropertiesproperties
Added in 37.0.0
public void SetProperties(     MaterialProperties properties,     Action<Sansar.Script.OperationCompleteEvent> handler )

Set new values for MaterialProperties

ParameterTypeDescription
propertiesMaterialPropertiesproperties
handlerAction<Sansar.Script.OperationCompleteEvent>Handler to be called when the event completes.
Added in 37.0.0
public void SetProperties(     MaterialProperties properties,     float timeInSeconds,     InterpolationMode interpolationMode )

Set new values for MaterialProperties interpolated over time

ParameterTypeDescription
propertiesMaterialPropertiesproperties
timeInSecondsfloattimeInSeconds
interpolationModeInterpolationModetimeInSeconds
Added in 37.0.0
public void SetProperties(     MaterialProperties properties,     float timeInSeconds,     InterpolationMode interpolationMode,     Action<Sansar.Script.OperationCompleteEvent> handler )

Set new values for MaterialProperties interpolated over time

ParameterTypeDescription
propertiesMaterialPropertiesproperties
timeInSecondsfloattimeInSeconds
interpolationModeInterpolationModetimeInSeconds
handlerAction<Sansar.Script.OperationCompleteEvent>Handler to be called when the event completes.

ToString

Added in 37.0.0
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.