uncommented some stuff
This commit is contained in:
parent
c82bdcf620
commit
77ee879a9f
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,8 @@ import java.net.URL;
|
||||||
import com.jme.bounding.BoundingBox;
|
import com.jme.bounding.BoundingBox;
|
||||||
import com.jme.scene.Node;
|
import com.jme.scene.Node;
|
||||||
import com.jme.scene.Spatial;
|
import com.jme.scene.Spatial;
|
||||||
|
import com.jme.scene.state.ZBufferState;
|
||||||
|
import com.jme.system.DisplaySystem;
|
||||||
import com.jme.util.export.binary.BinaryImporter;
|
import com.jme.util.export.binary.BinaryImporter;
|
||||||
import com.jme.util.resource.ResourceLocatorTool;
|
import com.jme.util.resource.ResourceLocatorTool;
|
||||||
import com.jme.util.resource.SimpleResourceLocator;
|
import com.jme.util.resource.SimpleResourceLocator;
|
||||||
|
|
@ -87,12 +89,11 @@ public class Util {
|
||||||
* Helper method to apply a ZBufferState to a node.
|
* Helper method to apply a ZBufferState to a node.
|
||||||
* @param node
|
* @param node
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
public static void applyZBuffer(Node node) {
|
public static void applyZBuffer(Node node) {
|
||||||
ZBufferState zbuf = DisplaySystem.getDisplaySystem().getRenderer().createZBufferState();
|
ZBufferState zbuf = DisplaySystem.getDisplaySystem().getRenderer().createZBufferState();
|
||||||
zbuf.setWritable(false);
|
zbuf.setWritable(false);
|
||||||
zbuf.setEnabled(true);
|
zbuf.setEnabled(true);
|
||||||
zbuf.setFunction(ZBufferState.CF_LEQUAL);
|
zbuf.setFunction(ZBufferState.CF_LEQUAL);
|
||||||
node.setRenderState(zbuf);
|
node.setRenderState(zbuf);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue