Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 24, 2024
1 parent 641c195 commit 7022f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
20 changes: 0 additions & 20 deletions pkg/ant.asset/ext_material_instance.lua

This file was deleted.

4 changes: 2 additions & 2 deletions pkg/ant.render/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ end

function irender.create_depth_state(os)
local s = irender.has_depth_test(os)
if s and not s.BLEND then
if s and not s.BLEND and not s.BLEND_FUNC then
s.DEPTH_TEST = INV_Z and "GREATER" or "LESS"
s.WRITE_MASK = "Z"
return bgfx.make_state(s)
Expand All @@ -213,7 +213,7 @@ end

function irender.create_write_state(os)
local s = irender.has_depth_test(os)
if s and not s.BLEND then
if s and not s.BLEND and not s.BLEND_FUNC then
s.DEPTH_TEST = INV_Z and "GREATER" or "LESS"
s.WRITE_MASK = "RGBAZ"
return bgfx.make_state(s)
Expand Down

0 comments on commit 7022f74

Please sign in to comment.