Only call AnimatedCelShade() before the main loop (after CelShader() is used) or when you have changed the number of shades used in CelShader(). AnimatedCelShade() is used for models loaded with LoadAnimMesh but don't use models with bone animation (play my Bongo game and watch closely to see why).