@EqualityReference public final class KMaterialDepthAlpha extends Object implements KMaterialDepthType
The type of properties for surfaces that use a configurable threshold and the albedo texture to derive their depth.
Note that this obviously requires the material to have an albedo texture assigned.
Modifier and Type | Method and Description |
---|---|
static KMaterialDepthAlpha |
alpha(float in_threshold)
Construct new depth properties.
|
String |
codeGet() |
<A,E extends Throwable,V extends KMaterialDepthVisitorType<A,E>> |
depthAccept(V v)
Be visited by the given generic visitor.
|
float |
getAlphaThreshold() |
static String |
getMaterialCode() |
boolean |
materialRequiresUVCoordinates() |
String |
toString() |
public static KMaterialDepthAlpha alpha(float in_threshold)
in_threshold
- The alpha threshold for depth. Values with an alpha less than
this threshold will not reach the depth buffer.public static String getMaterialCode()
public String codeGet()
codeGet
in interface KMaterialCodeType
public <A,E extends Throwable,V extends KMaterialDepthVisitorType<A,E>> A depthAccept(V v) throws E extends Throwable, RException
KMaterialDepthType
depthAccept
in interface KMaterialDepthType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorE
- Iff the visitor raises E
RException
- Iff the visitor raises RException
E extends Throwable
public float getAlphaThreshold()
public boolean materialRequiresUVCoordinates()
materialRequiresUVCoordinates
in interface KMaterialRequiresUVType
true
if the material requires UV coordinates for
rendering.Copyright © 2015 <code@io7m.com> http://io7m.com