[SOLVED] Textures Transparent on Underside


#1

I’m using some premade models and a few of them have one sided textures when viewed from underneath.

Is there a simple solution I could apply to the material or spatial that could simple use the texture on other side of the mesh?


#2

https://javadoc.jmonkeyengine.org/com/jme3/material/Material.html#getAdditionalRenderState--
https://javadoc.jmonkeyengine.org/com/jme3/material/RenderState.html#setFaceCullMode-com.jme3.material.RenderState.FaceCullMode-


#3

geom.getMaterial().getAdditionalRenderState().setFaceCullMode(RenderState.FaceCullMode.Off);

Perfect thank you.