Modifier and Type | Class and Description |
---|---|
class |
Texture
This class defines the texture from an external file.
|
Modifier and Type | Method and Description |
---|---|
TextureBase |
PbrMaterial.getAlbedoTexture()
Gets the texture for albedo
|
TextureBase |
PbrMaterial.getEmissiveTexture()
Gets the texture for emissive
|
TextureBase |
PbrMaterial.getMetallicRoughness()
Gets the texture for metallic(in R channel) and roughness(in G channel)
|
TextureBase |
PbrMaterial.getNormalTexture()
Gets the texture of normal mapping
|
TextureBase |
PbrMaterial.getOcclusionTexture()
Gets the texture for ambient occlusion
|
TextureBase |
PbrMaterial.getSpecularTexture()
Gets the texture for specular color
|
TextureBase |
Material.getTexture(String slotName)
Gets the texture from the specified slot, it can be material's property name or shader's parameter name
|
Modifier and Type | Method and Description |
---|---|
void |
PbrMaterial.setAlbedoTexture(TextureBase value)
Sets the texture for albedo
|
void |
PbrMaterial.setEmissiveTexture(TextureBase value)
Sets the texture for emissive
|
void |
PbrMaterial.setMetallicRoughness(TextureBase value)
Sets the texture for metallic(in R channel) and roughness(in G channel)
|
void |
PbrMaterial.setNormalTexture(TextureBase value)
Sets the texture of normal mapping
|
void |
PbrMaterial.setOcclusionTexture(TextureBase value)
Sets the texture for ambient occlusion
|
void |
PbrMaterial.setSpecularTexture(TextureBase value)
Sets the texture for specular color
|
void |
Material.setTexture(String slotName,
TextureBase texture)
Sets the texture to specified slot
|
Copyright © 2018. All rights reserved.