I am trying to load a bush model i made in blender that has transparency.
I cant get transparency to work though. All i'm getting is black quads around the the leaves.
here is the code i am using:
BlendState as = display.getRenderer().createBlendState();
as.setBlendEnabled(true);
as.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
as.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
as.setTestEnabled(true);
as.setTestFunction(BlendState.TestFunction.GreaterThanOrEqualTo);
as.setEnabled(true);
n.setRenderState(as);