Post #2467873
2026-05-12 12:00 UTC
Replies (1)
-
@natalie@my.softerhearts.club 2026-05-12 23:40
Code has been neatened now. OccluderShape pregenerates segment information. OccluderBuilder takes OccluderShapes and a transform and generates shader vertex information. Occluder takes the vertex information from OccluderBuilder and builds a mesh. It also has its own transform, and draw function. Shader is stored as a static for use. Should let me pretty easily bake static geometry into a single buffer while using all the same functions for more dynamic geometry. Shader is written with only the knowledge that a segment has a previous and next segment, so you can have an arbitrary number of polygons in the same mesh. Had to update more Love2D typings since I'm working with the unreleased Love2D 12.0. But luckily they have some smoke tests in lua that I can reference