automated snapshot

This commit is contained in:
sumi
2025-12-24 08:31:11 -06:00
parent c03625ecb5
commit ffb69932e4

View File

@@ -127,6 +127,7 @@ func (s *Sketch) Draw(ctx *RenderCtx) {
viewport := s.CalcViewport(ctx) viewport := s.CalcViewport(ctx)
rl.BeginBlendMode(rl.BlendAlphaPremultiply)
rl.BeginTextureMode(s.composite) rl.BeginTextureMode(s.composite)
rl.ClearBackground(rl.Black) rl.ClearBackground(rl.Black)
for _, instance := range s.layerToolsOrdered { for _, instance := range s.layerToolsOrdered {
@@ -151,6 +152,7 @@ func (s *Sketch) Draw(ctx *RenderCtx) {
} }
} }
rl.EndTextureMode() rl.EndTextureMode()
rl.EndBlendMode()
rl.GenTextureMipmaps(&s.composite.Texture) rl.GenTextureMipmaps(&s.composite.Texture)
rl.SetTextureFilter(s.composite.Texture, rl.FilterTrilinear) rl.SetTextureFilter(s.composite.Texture, rl.FilterTrilinear)