Inochi2D / inochi2d

Inochi2D reference implementation aimed at rendering 2D puppets that can be animated in real-time (using eg. facial capture).
BSD 2-Clause "Simplified" License
1.26k stars 47 forks source link

Make Shader impl allow reusing shader code #1

Closed LunaTheFoxgirl closed 3 years ago

LunaTheFoxgirl commented 3 years ago

Currently the blending shaders all each have a copy of the puppet.vert shader, I need to make the Shader class able to reuse programs for better efficiency.

LunaTheFoxgirl commented 3 years ago

image for reference, this is the extent of how bad the problem is