Scale (Image program function)

Description

This function will scale color and alpha by a defined amount.

Usage

scale ([map], [float],[float],[float],[float])

Parameters

  • [map] - The image to be scaled.
  • [float] - RGBA

Example

Reduce red by 50%

textures/half_size
{
  {      
    blend diffusemap
    map   scale(textures/decals/plasma_burn.tga, 0.5,1,1,1)
  }
}

Notes

None.