@EqualityReference public final class KMaterialTranslucentRegular extends Object implements KMaterialTranslucentType, KMaterialRegularType
public static KMaterialTranslucentRegularBuilderType newBuilder()
public static KMaterialTranslucentRegularBuilderType newBuilder(KMaterialTranslucentRegular o)
o
- The base material.public static KMaterialTranslucentRegular newMaterial(com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> in_uv_matrix, KMaterialAlbedoType in_albedo, KMaterialAlphaType in_alpha, KMaterialEnvironmentType in_environment, KMaterialNormalType in_normal, KMaterialSpecularType in_specular) throws RExceptionMaterialMissingSpecularTexture, RException
in_uv_matrix
- The material-specific UV matrixin_normal
- The normal mapping parametersin_albedo
- The albedo parametersin_environment
- The environment mapping parametersin_specular
- The specular parametersin_alpha
- The alpha parametersRExceptionMaterialMissingSpecularTexture
- If one or more material properties require a specular texture,
but one was not provided.RException
- If an error occurs.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 KMaterialAlphaType materialGetAlpha()
public String materialGetLitCode()
materialGetLitCode
in interface KMaterialLitType
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 KMaterialAlbedoType materialRegularGetAlbedo()
materialRegularGetAlbedo
in interface KMaterialRegularType
public KMaterialEnvironmentType materialRegularGetEnvironment()
materialRegularGetEnvironment
in interface KMaterialRegularType
public KMaterialSpecularType materialRegularGetSpecular()
materialRegularGetSpecular
in interface KMaterialRegularType
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