3ds Max C++ API Reference
Loading...
Searching...
No Matches
Texture Operations

Macros

#define GW_TEX_LEAVE   0
 Use the source pixel value.
 
#define GW_TEX_REPLACE   1
 Use the texture pixel value.
 
#define GW_TEX_MODULATE   2
 Multiply the source with the texture.
 
#define GW_TEX_ADD   3
 Add the source and texture.
 
#define GW_TEX_ADD_SIGNED   4
 Add the source and texture with an 0.5 subtraction.
 
#define GW_TEX_SUBTRACT   5
 Subtract the source from the texture.
 
#define GW_TEX_ADD_SMOOTH   6
 Add the source and the texture then subtract their product.
 
#define GW_TEX_ALPHA_BLEND   7
 Alpha blend the texture with the source.
 
#define GW_TEX_PREMULT_ALPHA_BLEND   8
 Alpha blend the the source with a premultiplied alpha texture.
 
#define GW_TEX_ALPHA_BLEND2   9
 Alpha blend the the source with a premultiplied alpha texture with GL_MODULATE as the tex env instead of GL_DECAL.
 

Detailed Description

Macro Definition Documentation

◆ GW_TEX_LEAVE

#define GW_TEX_LEAVE   0

Use the source pixel value.

◆ GW_TEX_REPLACE

#define GW_TEX_REPLACE   1

Use the texture pixel value.

◆ GW_TEX_MODULATE

#define GW_TEX_MODULATE   2

Multiply the source with the texture.

◆ GW_TEX_ADD

#define GW_TEX_ADD   3

Add the source and texture.

◆ GW_TEX_ADD_SIGNED

#define GW_TEX_ADD_SIGNED   4

Add the source and texture with an 0.5 subtraction.

◆ GW_TEX_SUBTRACT

#define GW_TEX_SUBTRACT   5

Subtract the source from the texture.

◆ GW_TEX_ADD_SMOOTH

#define GW_TEX_ADD_SMOOTH   6

Add the source and the texture then subtract their product.

◆ GW_TEX_ALPHA_BLEND

#define GW_TEX_ALPHA_BLEND   7

Alpha blend the texture with the source.

◆ GW_TEX_PREMULT_ALPHA_BLEND

#define GW_TEX_PREMULT_ALPHA_BLEND   8

Alpha blend the the source with a premultiplied alpha texture.

◆ GW_TEX_ALPHA_BLEND2

#define GW_TEX_ALPHA_BLEND2   9

Alpha blend the the source with a premultiplied alpha texture with GL_MODULATE as the tex env instead of GL_DECAL.