@EqualityReference public final class KMaterialOpaqueRegular extends Object implements KMaterialOpaqueType, KMaterialRegularType
public static KMaterialOpaqueRegularBuilderType newBuilder()
public static KMaterialOpaqueRegularBuilderType newBuilder(KMaterialOpaqueRegular o)
o
- The base material.public static KMaterialOpaqueRegular newMaterial(com.io7m.jtensors.parameterized.PMatrixI3x3F<RSpaceTextureType,RSpaceTextureType> in_uv_matrix, KMaterialAlbedoType in_albedo, KMaterialDepthType in_depth, KMaterialEmissiveType in_emissive, KMaterialEnvironmentType in_environment, KMaterialNormalType in_normal, KMaterialSpecularType in_specular) throws RExceptionMaterialMissingAlbedoTexture, RExceptionMaterialMissingSpecularTexture, RException
in_uv_matrix
- The material's UV matrixin_depth
- The material's depth rendering propertiesin_normal
- The material's normal mapping propertiesin_albedo
- The material's albedo propertiesin_emissive
- The material's emissive propertiesin_environment
- The material's environment mapping propertiesin_specular
- The material's specularity propertiesRExceptionMaterialMissingAlbedoTexture
- If one or more material properties require an albedo texture,
but one was not provided.RExceptionMaterialMissingSpecularTexture
- 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 KMaterialEmissiveType materialGetEmissive()
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 KMaterialDepthType materialOpaqueGetDepth()
materialOpaqueGetDepth
in interface KMaterialOpaqueType
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 KMaterialOpaqueVisitorType<A,E>> A opaqueAccept(V v) throws E extends Throwable, RException
KMaterialOpaqueType
opaqueAccept
in interface KMaterialOpaqueType
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