How to change depth for "TextureStage.MNo" generat


I’m new in Panda, and I’m testing shaders using “TextureStage.MNormal”, and it works pretty well.
Now the problem is I cannot find any way to set some shaders parameters like the “depth” of the normal map effect.
Can I manage it? how?

Can I change more parameters?

Thank you for your help!

There’s no such thing as a “depth” in a normal map. A normal map holds tangent space normal vectors of the geometry. You might be able to make the effect stronger by multiplying the normals in the map in a certain way, but this doesn’t make much sense to apply as a parameter in the shader.

So the only way now is applying a multiplier factor to manage the visual effect of depth, based on the tangent normals.

Ok thank you!

Keep in mind that (0.5, 0.5, 1.0) in the image represents a vector of (0, 0, 1), so you’ll need to rescale the range when multiplying or it’s going to look quite messed up.