Anyone has a shader i can use?

The shader i needed does:

  • one texture for color/diffuse (texture unit 0)
  • one texture for parallax map (texture unit 1)
  • optional one texture for specular (texture unit 2)
  • optional one texture lightmap (texture unit 3)
  • supports 1, 2 or 3 different point light sources and one extra light for global illumination

Edit: If the shader also does some sort of LOD it would be great. Like for example using color texture and discard specular and normal mapping if distance to the observer is big enough.

Take a look at the Nature Demo in the showcase, which offers nice shaders. There is also a dynamic shadow one in the code snipplets.

I don’t see the shader i’m looking for:

But thanks anyway.

Ahem.

For lightmap:
discourse.panda3d.org/viewtopic.php?t=2172