Jump to content

Definetint (DEF)

From EDukeWiki
This feature is deprecated.
It's recommend not to use this feature.

definetint <palnum> <red> <green> <blue> <flags>

Defines a Hightile texture tint to simulate palette effects normally used on ART-file tiles. <red>, <green>, and <blue> are numbers in the range 0 to 255 which specify the color the tint should look like. <flags> specifies any processing effects to use.

Flags

The following values are used by tint.

ValueLabelDescription
1HICTINT_GRAYSCALEConvert to grayscale.
2HICTINT_INVERTInvert colors.
4HICTINT_COLORIZEThis enables the "colorize" color mode. This mode is similar to "multiply", except the end result will make the pixels 4x brighter. A value of 64 has no effect.
8HICTINT_USEONARTApplies the tint instead of lookup palette on 8-bit tile.
16HICTINT_APPLYOVERPALSWAP
32HICTINT_APPLYOVERALTPAL
64HICTINT_BLEND_SCREENThis enables the "screen" color mode. This mode increases the colors proportionally. A value of zero has no effect.
128HICTINT_BLEND_OVERLAYEnables the "overlay" color mode. This mode increases or decreases the colors of the pixels from the middle. A value of 128 has no effect.
64 + 128HICTINT_BLEND_HARDLIGHTSame as overlay, but changes the priority between texture or color during the calculation.
256HICTINT_ALWAYSUSEARTForce 8-bit texture to be displayed even if a hightile was defined.
512HICTINT_NOFOGSHADEForce an even visibility on the texture. Can be set for all palettes with GLOBAL_NO_GL_FOGSHADE on globalflags.