public final class MaterialModelV2 extends AbstractNamedModelElement implements MaterialModel
MaterialModel for glTF 2.0.| Modifier and Type | Class and Description |
|---|---|
static class |
MaterialModelV2.AlphaMode
Alpha modes
|
| Constructor and Description |
|---|
MaterialModelV2()
Creates a new instance with default values
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAlphaCutoff()
Returns the alpha cutoff
|
MaterialModelV2.AlphaMode |
getAlphaMode()
Returns the alpha mode
|
float[] |
getBaseColorFactor()
Returns the base color factor
|
java.lang.Integer |
getBaseColorTexcoord()
Return the base color texture coordinate set
|
TextureModel |
getBaseColorTexture()
Returns the base color texture
|
float[] |
getEmissiveFactor()
Returns the emissive factor
|
java.lang.Integer |
getEmissiveTexcoord()
Set the emissive texture coordinate set
|
TextureModel |
getEmissiveTexture()
Returns the emissive texture
|
float |
getMetallicFactor()
Returns the metallic factor
|
java.lang.Integer |
getMetallicRoughnessTexcoord()
Returns the metallic-roughness texture coordinate set
|
TextureModel |
getMetallicRoughnessTexture()
Returns the metallic-roughness-texture
|
float |
getNormalScale()
Returns the normal scale
|
java.lang.Integer |
getNormalTexcoord()
Returns the normal texture coordinate set
|
TextureModel |
getNormalTexture()
Returns the normal texture
|
float |
getOcclusionStrength()
Returns the occlusion strength
|
java.lang.Integer |
getOcclusionTexcoord()
Returns the occlusion texture coordinate set
|
TextureModel |
getOcclusionTexture()
Returns the occlusion texture
|
float |
getRoughnessFactor()
Returns the roughness factor
|
boolean |
isDoubleSided()
Returns whether the material is double sided
|
void |
setAlphaCutoff(float alphaCutoff)
Set the alpha cutoff
|
void |
setAlphaMode(MaterialModelV2.AlphaMode alphaMode)
Set the alpha mode
|
void |
setBaseColorFactor(float[] baseColorFactor)
Set the base color factor
|
void |
setBaseColorTexcoord(java.lang.Integer baseColorTexcoord)
Set the base color texture coordinate set
|
void |
setBaseColorTexture(TextureModel baseColorTexture)
Set the base color texture
|
void |
setDoubleSided(boolean doubleSided)
Set whether the material is double sided
|
void |
setEmissiveFactor(float[] emissiveFactor)
Set the emissive factor
|
void |
setEmissiveTexcoord(java.lang.Integer emissiveTexcoord)
Set the emissive texture coordinate set
|
void |
setEmissiveTexture(TextureModel emissiveTexture)
Set the emissive texture
|
void |
setMetallicFactor(float metallicFactor)
Set the metallic factor
|
void |
setMetallicRoughnessTexcoord(java.lang.Integer metallicRoughnessTexcoord)
Set the metallic-roughness texture coordinate set
|
void |
setMetallicRoughnessTexture(TextureModel metallicRoughnessTexture)
Set the metallic-roughness-texture
|
void |
setNormalScale(float normalScale)
Set the normal scale
|
void |
setNormalTexcoord(java.lang.Integer normalTexcoord)
Set the normal texture coordinate set
|
void |
setNormalTexture(TextureModel normalTexture)
Set the normal texture
|
void |
setOcclusionStrength(float occlusionStrength)
Set the occlusion strength
|
void |
setOcclusionTexcoord(java.lang.Integer occlusionTexcoord)
Set the occlusion texture coordinate set
|
void |
setOcclusionTexture(TextureModel occlusionTexture)
Set the occlusion texture
|
void |
setRoughnessFactor(float roughnessFactor)
Set the roughness factor
|
getName, setNameaddExtension, getExtensions, getExtras, removeExtension, setExtensions, setExtrasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetExtensions, getExtraspublic MaterialModelV2()
public float[] getBaseColorFactor()
public void setBaseColorFactor(float[] baseColorFactor)
baseColorFactor - The base color factorpublic TextureModel getBaseColorTexture()
public void setBaseColorTexture(TextureModel baseColorTexture)
baseColorTexture - The base color texturepublic java.lang.Integer getBaseColorTexcoord()
public void setBaseColorTexcoord(java.lang.Integer baseColorTexcoord)
baseColorTexcoord - The texture coordinate setpublic float getMetallicFactor()
public void setMetallicFactor(float metallicFactor)
metallicFactor - The metallic factorpublic float getRoughnessFactor()
public void setRoughnessFactor(float roughnessFactor)
roughnessFactor - The roughness factorpublic TextureModel getMetallicRoughnessTexture()
public void setMetallicRoughnessTexture(TextureModel metallicRoughnessTexture)
metallicRoughnessTexture - The metallic-roughness-texturepublic java.lang.Integer getMetallicRoughnessTexcoord()
public void setMetallicRoughnessTexcoord(java.lang.Integer metallicRoughnessTexcoord)
metallicRoughnessTexcoord - The texture coordinate setpublic TextureModel getNormalTexture()
public void setNormalTexture(TextureModel normalTexture)
normalTexture - The normal texturepublic java.lang.Integer getNormalTexcoord()
public void setNormalTexcoord(java.lang.Integer normalTexcoord)
normalTexcoord - The texture coordinate setpublic float getNormalScale()
public void setNormalScale(float normalScale)
normalScale - The normal scalepublic TextureModel getOcclusionTexture()
public void setOcclusionTexture(TextureModel occlusionTexture)
occlusionTexture - The occlusion texturepublic java.lang.Integer getOcclusionTexcoord()
public void setOcclusionTexcoord(java.lang.Integer occlusionTexcoord)
occlusionTexcoord - The texture coordinate setpublic float getOcclusionStrength()
public void setOcclusionStrength(float occlusionStrength)
occlusionStrength - The occlusion strengthpublic TextureModel getEmissiveTexture()
public void setEmissiveTexture(TextureModel emissiveTexture)
emissiveTexture - The emissive texturepublic java.lang.Integer getEmissiveTexcoord()
public void setEmissiveTexcoord(java.lang.Integer emissiveTexcoord)
emissiveTexcoord - The texture coordinate setpublic float[] getEmissiveFactor()
public void setEmissiveFactor(float[] emissiveFactor)
emissiveFactor - The emissive factorpublic MaterialModelV2.AlphaMode getAlphaMode()
public void setAlphaMode(MaterialModelV2.AlphaMode alphaMode)
alphaMode - The alpha modepublic float getAlphaCutoff()
public void setAlphaCutoff(float alphaCutoff)
alphaCutoff - The alpha cutoffpublic boolean isDoubleSided()
public void setDoubleSided(boolean doubleSided)
doubleSided - Whether the material is double sidedCopyright © 2022. All Rights Reserved.