Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 416 Bytes

File metadata and controls

8 lines (7 loc) · 416 Bytes

Stencil

This sample renders a rotating cube on a black floor with the reflection of the cube shown on the floor. The reflection cube is confined within the floor by using stencil buffer. The actual value in the stencil buffer and the value used to compare with the stencil buffer in a stencil test is controlled by calls to vkCmdSetStencilReference, vkCmdSetStencilWriteMask and vkCmdSetStencilCompareMask.