Hi
When using setShadowCaster on the directional light in my program, I get this error:
:gobj(error): created-shader: uniform in unknown k_dlighttex0: invalid type for non-prefix parameter
:gobj(error): Shader encountered an error.
The program runs though, but no shadows appear.
I am using a simple scene with a car, a road, a directional and an ambient light.
Models where created in blender and exported with the EGG exporter.
What could cause this problem?
I’m attaching some of the relevant source.
self.directionalLight = self.render.attachNewNode( DirectionalLight( "directionalLight" ) )
self.directionalLight.setPos(0,0,999)
self.directionalLight.node().setDirection( Vec3( 1, 1, -2 ) )
self.directionalLight.node().setColor( Vec4( .7, .7, .7, 1 ) )
self.directionalLight.node().setShadowCaster(True, 12, 12)
self.ambientLight = self.render.attachNewNode( AmbientLight( "ambientLight" ) )
self.ambientLight.node().setColor( Vec4( .2, .2, .2, 2 ) )
self.render.setLight(self.directionalLight)
self.render.setLight( self.ambientLight )
...
self.car.setShaderAuto()
self.track.setShaderAuto()
Version of Panda3D: CVS 20101204
Edit: OS: ArchLinux x86_64