@EqualityReference public final class KMaterialTranslucentRefractive extends Object implements KMaterialTranslucentType, KMaterialUnlitType
Modifier and Type | Method and Description |
---|---|
KMaterialRefractiveType |
getRefractive() |
<A,E extends Throwable,V extends KMaterialVisitorType<A,E>> |
materialAccept(V v)
Be visited by the given generic visitor.
|
KMaterialNormalType |
materialGetNormal() |
String |
materialGetUnlitCode() |
com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> |
materialGetUVMatrix() |
boolean |
materialRequiresUVCoordinates() |
<A,E extends Throwable,V extends KMaterialTranslucentVisitorType<A,E>> |
materialTranslucentAccept(V v)
Be visited by the given generic visitor.
|
static KMaterialTranslucentRefractive |
newMaterial(com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> in_uv_matrix,
KMaterialNormalType in_normal,
KMaterialRefractiveType in_refractive)
Construct a new regular translucent material.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialTranslucentRefractive newMaterial(com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> in_uv_matrix, KMaterialNormalType in_normal, KMaterialRefractiveType in_refractive)
in_uv_matrix
- The material-specific UV matrixin_normal
- The normal mapping parametersin_refractive
- The refractive parameterspublic KMaterialRefractiveType getRefractive()
public <A,E extends Throwable,V extends KMaterialVisitorType<A,E>> A materialAccept(V v) throws E extends Throwable, RException
KMaterialType
materialAccept
in interface KMaterialType
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 KMaterialNormalType materialGetNormal()
materialGetNormal
in interface KMaterialType
public String materialGetUnlitCode()
materialGetUnlitCode
in interface KMaterialUnlitType
public com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> materialGetUVMatrix()
materialGetUVMatrix
in interface KMaterialType
public boolean materialRequiresUVCoordinates()
materialRequiresUVCoordinates
in interface KMaterialRequiresUVType
true
if the material requires UV coordinates for
rendering.public <A,E extends Throwable,V extends KMaterialTranslucentVisitorType<A,E>> A materialTranslucentAccept(V v) throws E extends Throwable, RException
KMaterialTranslucentType
materialTranslucentAccept
in interface KMaterialTranslucentType
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 int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
Copyright © 2015 <code@io7m.com> http://io7m.com