Function; addShaderProp - HWRM/KarosGraveyard GitHub Wiki

addShaderProp(<rShipTable>, <sShaderParam>, <iBaseChannel>, <fBaseChannelValue>, <fBaseChannel+1Value>, ...)

Description

  • Allows you to assign channel values to named shader inputs, letting you send data to ship's materials and edit it via LUA.

Example

addShaderProp(NewShipType, "SOB_surfGlow", 2, 2);

Arguments

  • <rShipTable>: this will generally be a reference NewShipType.
  • <sShaderParam>: shader input name.
  • <iBaseChannel>: starting channel.
  • <fBaseChannelValue>: value for channel.
  • <fBaseChannel+1Value>: value for next channel.

Scope

Related Pages

Comments