TM_FOGLAYER,// (renders a fog layer in the shape of the active texture)
TM_FIXEDCOLORMAP=TM_FOGLAYER,// repurposes the objectcolor uniforms to render a fixed colormap range. (Same constant because they cannot be used in the same context.
};
// Legacy render styles
enumERenderStyle
{
STYLE_None,// Do not draw
STYLE_Normal,// Normal; just copy the image to the screen
STYLE_Fuzzy,// Draw silhouette using "fuzz" effect
STYLE_OptFuzzy,// Draw as fuzzy or translucent, based on user preference
STYLE_Stencil,// Fill image interior with alphacolor
STYLE_Translucent,// Draw translucent
STYLE_Add,// Draw additive
STYLE_Shaded,// Treat patch data as alpha values for alphacolor
STYLE_TranslucentStencil,
STYLE_Shadow,
STYLE_Subtract,// Actually this is 'reverse subtract' but this is what normal people would expect by 'subtract'.
STYLE_AddStencil,// Fill image interior with alphacolor
STYLE_AddShaded,// Treat patch data as alpha values for alphacolor
STYLE_Multiply,// Multiply source with destination (HW renderer only.)
STYLE_InverseMultiply,// Multiply source with inverse of destination (HW renderer only.)
STYLE_ColorBlend,// Use color intensity as transparency factor
STYLE_Source,// No blending (only used internally)
STYLE_ColorAdd,// Use color intensity as transparency factor and blend additively.
STYLE_Count
};
// Flexible render styles (most possible combinations are supported in software)
enumERenderOp
{
STYLEOP_None,// Do not draw
STYLEOP_Add,// Add source to destination
STYLEOP_Sub,// Subtract source from destination
STYLEOP_RevSub,// Subtract destination from source
STYLEOP_Fuzz,// Draw fuzzy on top of destination - ignores alpha and color
STYLEOP_FuzzOrAdd,// Draw fuzzy or add, based on user preference
STYLEOP_FuzzOrSub,// Draw fuzzy or subtract, based on user preference
STYLEOP_FuzzOrRevSub,// Draw fuzzy or reverse subtract, based on user preference
// special styles
STYLEOP_Shadow,
};
enumERenderAlpha
{
STYLEALPHA_Zero,// Blend factor is 0.0
STYLEALPHA_One,// Blend factor is 1.0
STYLEALPHA_Src,// Blend factor is alpha
STYLEALPHA_InvSrc,// Blend factor is 1.0 - alpha
STYLEALPHA_SrcCol,// Blend factor is color (HWR only)
STYLEALPHA_InvSrcCol,// Blend factor is 1.0 - color (HWR only)
STYLEALPHA_DstCol,// Blend factor is dest. color (HWR only)
STYLEALPHA_InvDstCol,// Blend factor is 1.0 - dest. color (HWR only)