Skip to main content
Skip to main content

setShaderParameter

setShaderParameter

Description

Set shader parameter

Definition

setShaderParameter(entityId shapeId, string parameterName, float? x, float? y, float? z, float? w, boolean? shared, integer? materialIndex)

Arguments

entityIdshapeIdshapeId
stringparameterNameparameterName
float?x[optional, default=currentValue]
float?y[optional, default=currentValue]
float?z[optional, default=currentValue]
float?w[optional, default=currentValue]
boolean?shared[optional, default=true]
integer?materialIndexmaterial index or a negative value to set to all materials [optional, default=-1]