About cartoon shader

I would like to ask what determines the color of cartoon shader?
I’ve copied some codes from Panda3D’s tutorial for another model, but the model is white in color when running
Thanks

Try the .setColor( function?

Your problem is probably caused by the fact that the texture(s) that should color your model are not where the .egg file expects them to be. You can open the .egg file with your favorite text editor to find out where the textures are expected.

I seem to recall that the cartoon shader uses an untextured model. Instead, we just assigned colors to each polygon. Look inside the egg file, you can see the colors in there.