Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 6, 2024
1 parent 4ba862e commit 88237cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ant.framework.demo/monitor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ local function flush_material(w)

for e in w:select "entity2d eid:in filter_material:in visible?out" do
local obj = cache[e.eid]
local fm = e.filter_material.DEFAULT_MATERIAL
local fm = e.filter_material[0]
fm.u_basecolor_factor = obj.color
e.visible = obj.visible
end
Expand Down
2 changes: 1 addition & 1 deletion pkg/ant.framework.demo/sprite2d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function sprite2d.new(world, texture, obj)
obj.material.color = mat.color or 0xffffff

world.w:extend(e, "filter_material:in")
e.filter_material.DEFAULT_MATERIAL.s_basecolor = texture_info.id
e.filter_material[0].s_basecolor = texture_info.id

monitor.new(obj, remove_sprite2d)
end
Expand Down

0 comments on commit 88237cc

Please sign in to comment.