Function; setShaderChannels - HWRM/KarosGraveyard GitHub Wiki

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

Description

  • Allows up to 32 channels.
  • Used in conjunction with addShaderProp to modify shader materials from LUA.

Example

setShaderChannels(NewShipType, 0, 1.0, 1.0, 0.0, 0.0);

Arguments

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

Scope

Related Pages

Comments