| Modifier and Type | Method and Description |
|---|---|
static MaterialBuilder |
MaterialBuilder.create()
Creates a new instance
|
MaterialBuilder |
MaterialBuilder.setAlphaCutoff(float alphaCutoff)
Set the alpha cutoff
|
MaterialBuilder |
MaterialBuilder.setAlphaMode(MaterialModelV2.AlphaMode alphaMode)
Set the alpha mode
|
MaterialBuilder |
MaterialBuilder.setBaseColorFactor(float r,
float g,
float b,
float a)
Set the base color factors
|
MaterialBuilder |
MaterialBuilder.setBaseColorTexture(java.lang.String fileName,
java.lang.String uri,
java.lang.Integer texCoord)
Convenience method to set the base color texture to the image that
is read from the specified file.
|
MaterialBuilder |
MaterialBuilder.setBaseColorTexture(TextureModel baseColorTexture,
java.lang.Integer texCoord)
Set the base color texture
|
MaterialBuilder |
MaterialBuilder.setDoubleSided(boolean doubleSided)
Set whether the material is double sided
|
MaterialBuilder |
MaterialBuilder.setEmissiveTexture(java.lang.String fileName,
java.lang.String uri,
float r,
float g,
float b,
java.lang.Integer texCoord)
Convenience method to set the occlusion texture to the image
that is read from the specified file.
|
MaterialBuilder |
MaterialBuilder.setEmissiveTexture(TextureModel emissiveTexture,
float r,
float g,
float b,
java.lang.Integer texCoord)
Set the emissive texture
|
MaterialBuilder |
MaterialBuilder.setMetallicRoughnessFactors(float metallicFactor,
float roughnessFactor)
Set the metallic and roughness factors
|
MaterialBuilder |
MaterialBuilder.setMetallicRoughnessTexture(java.lang.String fileName,
java.lang.String uri,
java.lang.Integer texCoord)
Convenience method to set the metallic-roughness texture to the image
that is read from the specified file.
|
MaterialBuilder |
MaterialBuilder.setMetallicRoughnessTexture(TextureModel metallicRoughnessTexture,
java.lang.Integer texCoord)
Set the metallic-roughness texture
|
MaterialBuilder |
MaterialBuilder.setNormalTexture(java.lang.String fileName,
java.lang.String uri,
float scale,
java.lang.Integer texCoord)
Convenience method to set the normal texture to the image
that is read from the specified file.
|
MaterialBuilder |
MaterialBuilder.setNormalTexture(TextureModel normalTexture,
float scale,
java.lang.Integer texCoord)
Set the normal texture
|
MaterialBuilder |
MaterialBuilder.setOcclusionTexture(java.lang.String fileName,
java.lang.String uri,
float strength,
java.lang.Integer texCoord)
Convenience method to set the occlusion texture to the image
that is read from the specified file.
|
MaterialBuilder |
MaterialBuilder.setOcclusionTexture(TextureModel occlusionTexture,
float strength,
java.lang.Integer texCoord)
Set the occlusion texture
|
Copyright © 2022. All Rights Reserved.