From 4fc8cb844370aaf31b4850e84274fc34526ccb52 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Mon, 9 Dec 2013 09:02:01 +0000 Subject: [PATCH] Added additional state for alpha test because falloff can logically be 0 and have alpha test still enabled. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10937 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/renderer/RenderContext.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/renderer/RenderContext.java b/engine/src/core/com/jme3/renderer/RenderContext.java index 80ef55b64..ea89ab58c 100644 --- a/engine/src/core/com/jme3/renderer/RenderContext.java +++ b/engine/src/core/com/jme3/renderer/RenderContext.java @@ -55,10 +55,15 @@ public class RenderContext { public boolean depthTestEnabled = false; /** - * @see RenderState#setAlphaTest(boolean) + * @see RenderState#setAlphaFallOff(float) */ public float alphaTestFallOff = 0f; + /** + * @see RenderState#setAlphaTest(boolean) + */ + public boolean alphaTestEnabled = false; + /** * @see RenderState#setDepthWrite(boolean) */