Enable GPU skinning in the default build.

Have the model animation update functions check the current shader to see if they are going to do GPU skinning or not.
Lazy load the CPU animation buffers so they don't get allocated if the user is doing GPU skinning.
This change allows both GPU and CPU skinning in the same program.
This commit is contained in:
Jeffery Myers 2026-06-13 10:34:19 -07:00
commit c6e2f19e10
3 changed files with 94 additions and 69 deletions

View file

@ -322,7 +322,7 @@
#endif
#ifndef SUPPORT_GPU_SKINNING
// GPU skinning disabled by default, some GPUs do not support more than 8 VBOs
#define SUPPORT_GPU_SKINNING 0
#define SUPPORT_GPU_SKINNING 1
#endif
//------------------------------------------------------------------------------------