@EqualityReference public final class KMaterialTranslucentSpecularOnly extends Object implements KMaterialTranslucentType, KMaterialLitType
public static KMaterialTranslucentSpecularOnlyBuilderType newBuilder()
public static KMaterialTranslucentSpecularOnlyBuilderType newBuilder(KMaterialTranslucentSpecularOnly o)
o
- The base material.public static KMaterialTranslucentSpecularOnly newMaterial(com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> in_uv_matrix, KMaterialAlphaType in_alpha, KMaterialNormalType in_normal, KMaterialSpecularNotNoneType in_specular)
in_uv_matrix
- The material-specific UV matrixin_alpha
- The alpha parametersin_normal
- The normal mapping parametersin_specular
- The specular parameterspublic KMaterialAlphaType getAlpha()
public KMaterialSpecularNotNoneType getSpecular()
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 String materialGetLitCode()
materialGetLitCode
in interface KMaterialLitType
public KMaterialNormalType materialGetNormal()
materialGetNormal
in interface KMaterialType
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