PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

AlphaMode

SurfaceAppearance

AlphaMode

This property determines how the alpha channel of the SurfaceAppearance/ColorMap of a SurfaceAppearance is used.

When AlphaMode is set to Enum/AlphaMode|Transparency and the BasePart/Transparency|MeshPart.Transparency is set to 0, opaque pixels in the SurfaceAppearance’s ColorMap will render as completely opaque in the 3D scene. This solves various problems for textures with different transparent and opaque areas, such as foliage. When parts of the surface are fully opaque, the Roblox engine can render them with proper depth-based occlusion. Opaque surfaces also generally work better with depth-based effects like DepthOfField, glass and water refraction, and water reflection.

MeshPart.TextureId vs SurfaceAppearance:

Foliage comparison

Here is an example of a fern color map. Only the pixels on the leaves have full alpha.

Alpha fern