Scale (Image program function)

From modwiki

Jump to: navigation, search

Description

This function will scale the specified image by a defined amount.

Usage

scale ([map], [scalar])

Parameters

  • [map] - The image to be scaled.
  • [scalar] - The amount to scale the image.

Example

Reduce the size by half...

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

Notes

None.


Personal tools
Main
id Tech 5