Skip to content

Commit

Permalink
Merge pull request regl-project#593 from stojg/patch-1
Browse files Browse the repository at this point in the history
Fix depth write failure on shadow cubemap generation
  • Loading branch information
mikolalysenko authored Feb 24, 2021
2 parents f95aac9 + a59a9d2 commit 2ba379e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/point-light-shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,10 @@ regl.frame(({ tick }) => {

globalScope(() => {
drawDepth(6, () => {
regl.clear({ depth: 1 })
drawMeshes()
})

regl.clear({ color: [0, 0, 0, 1] })
drawNormal(() => {
drawMeshes()
})
Expand Down

0 comments on commit 2ba379e

Please sign in to comment.