Model texture disappearing with shaders

Hello, some of my model textures disappear when I attempt to use shaders with a model. Also, the dog model is not being affected by my light for some reason, even though I have it lighting everything.

from direct.showbase.ShowBase import ShowBase
from panda3d.core import Vec4, Spotlight, AmbientLight, DirectionalLight
from toonlib.Toon import Toon

class TestApp(ShowBase):
    def __init__(self):
        ShowBase.__init__(self)
        
        base.disableMouse()
        base.camera.setHpr(0,350.53,0)
        
        self.testObj = loader.loadModel("models/modelstand.egg")
        self.testObj.reparentTo(render)
        self.testObj.setPos(0,7,-1.90)
        self.testObj.setHpr(350,0,0)
        self.testObj.flattenStrong()
        
        self.toon = Toon(1, 0, 0, 0, "neutral", False)
        self.toon.toonObj.reparentTo(render)
        self.toon.toonObj.setPosHprScale(0.00, 7.00, -1.53, 255.96, 0.00, 0.00, 0.33, 0.33, 0.33)
        
        self.light = render.attachNewNode(Spotlight('light'))
        self.light.node().setColor(Vec4(2,2,2,1))
        self.light.node().setShadowCaster(True, 512, 512)
        self.light.setPosHprScale(8.54,7.15,0.00,90.00,353.66,0.00,1.00,1.00,1.00)
        render.setLight(self.light)
        
        self.ambience = render.attachNewNode(AmbientLight('alight'))
        self.ambience.node().setColor(Vec4(.5,.5,.5,1))
        render.setLight(self.ambience)
        render.setShaderAuto()
        
        
        
app = TestApp()
app.run()

Are you sure the normals on the dog model are set correctly? Also, try removing the call to flattenStrong and see what happens.

Are you sure that the model uses textures and not vertex colours? I do know that there are bugs in the shader generator with vertex colours that can be fixed by setting “basic-shaders-only” to “#t” in your Config.prc file.