Added support for color duplication and clamping.
Added a constant-based mask blend for 3D textures.
Added a texture-based mask blend for 3D textures.