I want to use the material specified in the mesh.
But the parameter that i found in the panda manuel doesn’t seem to work.
“uniform float4x4 attr_material,”
in:
uniform float4x4 dlight_x
X must be an DirectionalLight specified via a shaderInput. Row 0 is color, row 1 is specular, row 2 is model-space direction, row 3 is model-space pseudo half-angle.
does that work in panda 1.4 ? how the setShaderInput() must be done ?
Also - if you really do want to use the obsolete version of Panda3D, then you can download the manual snapshot from back then. It’s on the download page.
But don’t do that for reasons of stability. Panda3D is a very mature software system — there’s hardly ever any real instability. Some of the newest features might contain bugs, but I certainly wouldn’t expect anything serious.