Skip to content

Commit

Permalink
minor comment addition
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed Apr 3, 2024
1 parent c12e40f commit 6750c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sample/stencilMask/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ const createRenderPipeline = (invertMask: boolean) => {
depthCompare: 'less',
format: 'depth24plus-stencil8',
stencilFront: {
// 'Equal': If the current value of the stencil is equal to the reference value set by setStencilReference(), keep the pixel.
// 'not-equal': Opposite of equal.
compare: invertMask ? 'not-equal' : 'equal',
passOp: 'keep',
failOp: 'zero',
Expand Down
2 changes: 1 addition & 1 deletion sample/stencilMask/meta.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
name: 'Stencil Mask',
description:
'This example demonstrates how to use the stencil buffer to create a simple mask over a scene. The mask itself is rendered using an SDF, and the properties of the mask are adjusted by changing the stencil test properties in the render pipeline.',
"This example demonstrates how to use the stencil buffer to create a simple mask over a scene. The mask itself is rendered using an SDF, with options to invert the mask or change the mask's shape. The position and scale of the mask can also be adjusted via the mouse and scroll wheel respectively.",
filename: __DIRNAME__,
sources: [
// Ts files
Expand Down

0 comments on commit 6750c54

Please sign in to comment.