I recently created a folder called ‘game’ in the Panda3D-1.5.2 directory. I then packed my useful files from the folder I used before (called ‘projects’) into the game folder. I had ran the soft shadows demo from the ‘projects’ folder before, and it worked. Now when I ran it from the ‘game’ folder, I get this error:
Assertion failed: Shader input scale is not present.
at line 323 of c:\temp\mkpr\panda\src\pgraph\shaderAttrib.cxx
Traceback (most recent call last):
File “main.py”, line 8899, in
run( )
File “C:\Panda3D-1.5.2\direct\src\showbase\ShowBase.py”, line 2262, in run
self.taskMgr.run()
File “C:\Panda3D-1.5.2\direct\src\task\Task.py”, line 939, in run
self.step()
File “C:\Panda3D-1.5.2\direct\src\task\Task.py”, line 877, in step
self.__stepThroughList(taskPriList)
File “C:\Panda3D-1.5.2\direct\src\task\Task.py”, line 776, in __stepThroughList
ret = self.__executeTask(task)
File “C:\Panda3D-1.5.2\direct\src\task\Task.py”, line 696, in __executeTask
ret = task(*task.extraArgs)
File “C:\Panda3D-1.5.2\direct\src\showbase\ShowBase.py”, line 1522, in __igLoop
self.graphicsEngine.renderFrame()
AssertionError: Shader input scale is not present.
at line 323 of c:\temp\mkpr\panda\src\pgraph\shaderAttrib.cxx
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
Me? Not me. I haven’t touched the code. All I did was copy files to a different folder. Anyhow, I looked for this k_scale and found it in the caster shader, but I know nothing about writing shaders. This is the code:
Could you help me out with this error? I don’t know if I got something mixed up here also.
self.sMgr = ShadowManager(render)
File “C:\Panda3D-1.5.2\samples\Shadows\shadowManager.py”, line 99, in init
mci.setShader(loader.loadShader(“softshadow.sha”))
TypeError: NodePath.setShader() argument 1 must be Shader, not NoneType