public class Material extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Material() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
defaultAlphaCutoff()
Returns the default value of the alphaCutoff
|
java.lang.String |
defaultAlphaMode()
Returns the default value of the alphaMode
|
java.lang.Boolean |
defaultDoubleSided()
Returns the default value of the doubleSided
|
float[] |
defaultEmissiveFactor()
Returns the default value of the emissiveFactor
|
java.lang.Float |
getAlphaCutoff()
The alpha cutoff value of the material.
|
java.lang.String |
getAlphaMode()
The alpha rendering mode of the material.
|
float[] |
getEmissiveFactor()
The factors for the emissive color of the material.
|
TextureInfo |
getEmissiveTexture()
The emissive texture.
|
MaterialNormalTextureInfo |
getNormalTexture()
The tangent space normal texture.
|
MaterialOcclusionTextureInfo |
getOcclusionTexture()
The occlusion texture.
|
MaterialPbrMetallicRoughness |
getPbrMetallicRoughness()
A set of parameter values that are used to define the
metallic-roughness material model from Physically Based Rendering
(PBR) methodology.
|
java.lang.Boolean |
isDoubleSided()
Specifies whether the material is double sided.
|
void |
setAlphaCutoff(java.lang.Float alphaCutoff)
The alpha cutoff value of the material.
|
void |
setAlphaMode(java.lang.String alphaMode)
The alpha rendering mode of the material.
|
void |
setDoubleSided(java.lang.Boolean doubleSided)
Specifies whether the material is double sided.
|
void |
setEmissiveFactor(float[] emissiveFactor)
The factors for the emissive color of the material.
|
void |
setEmissiveTexture(TextureInfo emissiveTexture)
The emissive texture.
|
void |
setNormalTexture(MaterialNormalTextureInfo normalTexture)
The tangent space normal texture.
|
void |
setOcclusionTexture(MaterialOcclusionTextureInfo occlusionTexture)
The occlusion texture.
|
void |
setPbrMetallicRoughness(MaterialPbrMetallicRoughness pbrMetallicRoughness)
A set of parameter values that are used to define the
metallic-roughness material model from Physically Based Rendering
(PBR) methodology.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setPbrMetallicRoughness(MaterialPbrMetallicRoughness pbrMetallicRoughness)
pbrMetallicRoughness - The pbrMetallicRoughness to setpublic MaterialPbrMetallicRoughness getPbrMetallicRoughness()
public void setNormalTexture(MaterialNormalTextureInfo normalTexture)
normalTexture - The normalTexture to setpublic MaterialNormalTextureInfo getNormalTexture()
public void setOcclusionTexture(MaterialOcclusionTextureInfo occlusionTexture)
occlusionTexture - The occlusionTexture to setpublic MaterialOcclusionTextureInfo getOcclusionTexture()
public void setEmissiveTexture(TextureInfo emissiveTexture)
emissiveTexture - The emissiveTexture to setpublic TextureInfo getEmissiveTexture()
public void setEmissiveFactor(float[] emissiveFactor)
emissiveFactor - The emissiveFactor to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic float[] getEmissiveFactor()
public float[] defaultEmissiveFactor()
getEmissiveFactor()public void setAlphaMode(java.lang.String alphaMode)
alphaMode - The alphaMode to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.String getAlphaMode()
public java.lang.String defaultAlphaMode()
getAlphaMode()public void setAlphaCutoff(java.lang.Float alphaCutoff)
alphaCutoff - The alphaCutoff to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Float getAlphaCutoff()
public java.lang.Float defaultAlphaCutoff()
getAlphaCutoff()public void setDoubleSided(java.lang.Boolean doubleSided)
doubleSided - The doubleSided to setpublic java.lang.Boolean isDoubleSided()
public java.lang.Boolean defaultDoubleSided()
isDoubleSided()Copyright © 2024. All Rights Reserved.