Union Bytes EngineModulesMaterialSetMaterialRoughness

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterial
SetMaterialRoughnessSetMaterialTexture
MathMeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

SetMaterialRoughness

Description

Sets the roughness of the specified material.

Syntax

UBE_SetMaterialRoughness( iMaterial.i, fRoughness.f )
Material: {
  Roughness: fRoughness
}

Parameters

iMaterial A valid number of the Material.
fRoughness A factor around 1.0 to decrease or increase the roughness of the Material.

Return value

None

See also

Union Bytes | Login