Surface Types

Compare opaque, masked, and transparent surfaces to understand how blending affects the final look.

Transport

In the browser, use a canvas with id vulfram-canvas.

Key steps

1. Create three materials with different surfaceType values.

2. Use alpha colors to notice the difference between masked and transparent.

3. Compare the result side by side.

Full example

ts
Live demo canvas