Back of face is textured in black

I created a material that doesn’t have face cull, so I can make the face visible in both ways. However, the back face is textured in black:

Front:


Back:

My texture uses Alpha, has DepthTest, DepthWrite and ColorWrite enabled.

Is it possible to make the texture visible in the other side? Or should I simply duplicate the faces?

Thanks,
Ev1lbl0w

Technically, the texture is visible on the other side, else it wouldn’t even be tree shaped.

Is this material lit?

Yes, there is a light at the SceneComposer.

Add an ambient light and have a look.

Where is the light relative to the tree? Does the other side show a texture?

Backface lighting is only supported in single-pass lighting mode, where it can be implemented efficiently.

You can enable it like this:

renderManager.setPreferredLightMode(TechniqueDef.LightMode.SinglePass);
3 Likes