@EqualityReference public final class KMaterialVerification extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidDepthMaterial(KMaterialAlbedoType in_albedo,
KMaterialDepthType in_depth)
If alpha-to-depth rendering is specified, check that an albedo texture is
provided.
|
static boolean |
isValidEnvironmentSpecular(KMaterialEnvironmentType in_environment,
KMaterialSpecularType in_specular)
If specular-mapped environment is specified, check that a specular
texture is provided.
|
static void |
materialVerifyOpaqueRegular(KMaterialAlbedoType in_albedo,
KMaterialDepthType in_depth,
KMaterialEmissiveType in_emissive,
KMaterialEnvironmentType in_environment,
KMaterialNormalType in_normal,
KMaterialSpecularType in_specular)
Check whether or not the given combination of material properties is
valid.
|
static void |
materialVerifyTranslucentRefractive(KMaterialNormalType in_normal,
KMaterialRefractiveType in_refractive)
Check whether or not the given combination of material properties is
valid.
|
static void |
materialVerifyTranslucentRegular(KMaterialAlbedoType in_albedo,
KMaterialAlphaType in_alpha,
KMaterialEnvironmentType in_environment,
KMaterialNormalType in_normal,
KMaterialSpecularType in_specular)
Check whether or not the given combination of material properties is
valid.
|
static void |
materialVerifyTranslucentSpecularOnly(KMaterialAlphaType in_alpha,
KMaterialNormalType in_normal,
KMaterialSpecularType in_specular)
Check whether or not the given combination of material properties is
valid.
|
public static boolean isValidDepthMaterial(KMaterialAlbedoType in_albedo, KMaterialDepthType in_depth)
in_albedo
- The albedo.in_depth
- The depth type.true
if valid.public static boolean isValidEnvironmentSpecular(KMaterialEnvironmentType in_environment, KMaterialSpecularType in_specular)
in_environment
- The environment.in_specular
- The specular type.true
if valid.public static void materialVerifyOpaqueRegular(KMaterialAlbedoType in_albedo, KMaterialDepthType in_depth, KMaterialEmissiveType in_emissive, KMaterialEnvironmentType in_environment, KMaterialNormalType in_normal, KMaterialSpecularType in_specular) throws RException, RExceptionMaterialMissingAlbedoTexture, RExceptionMaterialMissingSpecularTexture
in_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 static void materialVerifyTranslucentRefractive(KMaterialNormalType in_normal, KMaterialRefractiveType in_refractive)
in_normal
- The material's normal mapping propertiesin_refractive
- The material's refractive propertiespublic static void materialVerifyTranslucentRegular(KMaterialAlbedoType in_albedo, KMaterialAlphaType in_alpha, KMaterialEnvironmentType in_environment, KMaterialNormalType in_normal, KMaterialSpecularType in_specular) throws RException, RExceptionMaterialMissingSpecularTexture
in_alpha
- The material's alpha propertiesin_normal
- The material's normal mapping propertiesin_albedo
- The material's albedo propertiesin_environment
- The material's environment mapping propertiesin_specular
- The material's specularity propertiesRExceptionMaterialMissingSpecularTexture
- If one or more material properties require a specular texture,
but one was not provided.RException
- If an error occurs.public static void materialVerifyTranslucentSpecularOnly(KMaterialAlphaType in_alpha, KMaterialNormalType in_normal, KMaterialSpecularType in_specular)
in_alpha
- The material's alpha propertiesin_normal
- The material's normal mapping propertiesin_specular
- The material's specular propertiesCopyright © 2015 <code@io7m.com> http://io7m.com