I’m stuck again
python part:
snowplane.setShaderInput("snowHeight", Vec4(0.0, 0, 0, 0))
glsl part:
uniform vec4 k_snowHeight;
Shader compiles with no errors and it renders the first frame.
But when I start to move around with mouse I get this error:
Assertion failed: Shader input k_snowHeight is not present.
at line 382 of c:\panda_cvs\panda\src\pgraph\shaderAttrib.cxx
Traceback (most recent call last):
File "c:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 1678, in __igLoop
self.graphicsEngine.renderFrame()
AssertionError: Shader input k_snowHeight is not present.
at line 382 of c:\panda_cvs\panda\src\pgraph\shaderAttrib.cxx
:task(error): Exception occurred in PythonTask igLoop
Traceback (most recent call last):
File "GraderSimulator.py", line 401, in <module>
run()
File "c:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 2532, in run
self.taskMgr.run()
File "c:\Panda3D-1.7.0\direct\task\Task.py", line 502, in run
self.step()
File "c:\Panda3D-1.7.0\direct\task\Task.py", line 460, in step
self.mgr.poll()
File "c:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 1678, in __igLoop
self.graphicsEngine.renderFrame()
AssertionError: Shader input k_snowHeight is not present.
at line 382 of c:\panda_cvs\panda\src\pgraph\shaderAttrib.cxx
there is no problem with displacementMap nor colorMap