Class DepthTestAttribute
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attribute
gaiasky.util.gdx.shader.attribute.DepthTestAttribute
- All Implemented Interfaces:
Comparable<Attribute>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
int
The depth test function, or 0 to disable depth test (default: GL10.GL_LEQUAL)boolean
Whether to write to the depth buffer (default: true)float
Mapping of far clipping plane to window coordinates (default: 1)float
Mapping of near clipping plane to window coordinates (default: 0)static final int
-
Constructor Summary
ConstructorDescriptionDepthTestAttribute
(boolean depthMask) DepthTestAttribute
(int depthFunc) DepthTestAttribute
(int depthFunc, boolean depthMask) DepthTestAttribute
(int depthFunc, float depthRangeNear, float depthRangeFar) DepthTestAttribute
(int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask) DepthTestAttribute
(int index, int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask) -
Method Summary
Methods inherited from class gaiasky.util.gdx.shader.attribute.Attribute
equals, equals, getAttributeAlias, getAttributeIndex, getAttributeIndex, getAttributeType, getNumAttributes, getTypes, has, register, toString
-
Field Details
-
Alias
- See Also:
-
Type
public static final int Type -
depthFunc
public int depthFuncThe depth test function, or 0 to disable depth test (default: GL10.GL_LEQUAL) -
depthRangeNear
public float depthRangeNearMapping of near clipping plane to window coordinates (default: 0) -
depthRangeFar
public float depthRangeFarMapping of far clipping plane to window coordinates (default: 1) -
depthMask
public boolean depthMaskWhether to write to the depth buffer (default: true)
-
-
Constructor Details
-
DepthTestAttribute
public DepthTestAttribute() -
DepthTestAttribute
public DepthTestAttribute(boolean depthMask) -
DepthTestAttribute
public DepthTestAttribute(int depthFunc) -
DepthTestAttribute
public DepthTestAttribute(int depthFunc, boolean depthMask) -
DepthTestAttribute
public DepthTestAttribute(int depthFunc, float depthRangeNear, float depthRangeFar) -
DepthTestAttribute
public DepthTestAttribute(int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask) -
DepthTestAttribute
public DepthTestAttribute(int index, int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask) -
DepthTestAttribute
-
-
Method Details