Skip to content

Commit

Permalink
Set stencil mask
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Oct 17, 2022
1 parent ac408c6 commit 9c96306
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orthographic/render/orthographic.render_script
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ end
function update(self)
-- clear color
render.set_depth_mask(true)
render.set_stencil_mask(0xff)
render.clear({[render.BUFFER_COLOR_BIT] = self.clear_color, [render.BUFFER_DEPTH_BIT] = 1, [render.BUFFER_STENCIL_BIT] = 0})
render.set_depth_mask(false)

Expand Down

0 comments on commit 9c96306

Please sign in to comment.