From: https://docs.panda3d.org/1.10/python/programming/render-attributes/materials
Materials have two other methods that have not been covered yet, setLocal(bool) and setTwoside(bool). The former controls whether to use camera-relative specular highlights or orthogonal specular highlights. This should be set to True unless an orthogonal projection camera is in use. The latter controls if lighting should appear on both sides of a polygon. Both these methods have equivalent get methods.
Using NodePath’s setTwoSided
in conjunction with Material’s setTwoside
works correctly when rendering with opengl, however, when using directx, setting the material with setTwoside
does not seem to work. Any ideas? Is this a bug or am I missing something?