Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Eniko Fox
Eniko Fox
@eniko@mastodon.gamedev.place  ·  activity timestamp 3 months ago

i can now overlay a block breaking decal on blocks, and it works on blocks with shell texturing and even nominally on objects like ferns and flowers

i draw the block's faces again using the stencil buffer, then draw the breaking decal with depth read/write off, masking using the stencil buffer

the way it works for ferns/flowers is i just draw all faces of the breaking pattern block, and any pixels outside the object model are masked

#EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

4 media
a dirt block with a block breaking pattern overlaid
a dirt block with a block breaking pattern overlaid
a dirt block with a block breaking pattern overlaid
a tree log block with a block breaking pattern overlaid
a tree log block with a block breaking pattern overlaid
a tree log block with a block breaking pattern overlaid
leaf block with block breaking pattern overlaid. it can be seen despite the pyramidal leaf shell texture that sits in front of the actual block face
leaf block with block breaking pattern overlaid. it can be seen despite the pyramidal leaf shell texture that sits in front of the actual block face
leaf block with block breaking pattern overlaid. it can be seen despite the pyramidal leaf shell texture that sits in front of the actual block face
a fern with some areas darkened, though the pixels of the breaking pattern don't match up with the fern's texture's pixels
a fern with some areas darkened, though the pixels of the breaking pattern don't match up with the fern's texture's pixels
a fern with some areas darkened, though the pixels of the breaking pattern don't match up with the fern's texture's pixels
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct