Skip to content
Menu
Mob City
  • Home
  • Contact
  • Patreon
  • About
Mob City

Tag: decal

Drawing opaque and semi-transparent pixels in the shader

Posted on November 30, 2024

I was making a selection marker decal and to make it appear smoothly, I noticed a broader issue when rendering alpha-0 and alpha non-0 pixels in the shader. I had to adjust my frag shader to draw opaque pixels in a separate pipeline from semi-transparent pixels: Later, I encountered a smaller issue of y-sorting it…

Continue Reading

Recent Posts

  • A call to arms! (really just admin stuff)
  • Toggling view modes and unit selection
  • Building occlusion
  • Rendering 120k+ entities
  • Modular building graphics
©2025 Mob City