Skip to main content

Class: Material

This page documents the methods and fields available in the Material class.

Members

SignatureDescription
findBoolean(String)Performs the findBoolean operation using the provided parameters (entryName).
findColor(String)Performs the findColor operation using the provided parameters (entryName).
findFloat(String)Performs the findFloat operation using the provided parameters (entryName).
findTexture(String)Performs the findTexture operation using the provided parameters (entryName).
findVector2(String)Performs the findVector2 operation using the provided parameters (entryName).
getBoolean(String)Returns the current boolean.
getColor(String)Returns the current color.
getCustomShader()Returns the current custom shader.
getFloat(String)Returns the current float.
getShader()Returns the current shader.
getTexture(String)Returns the current texture.
getVector2(String)Returns the current vector2.
loadFile(MaterialFile)Loads file into the object.
reloadEntries()Performs the reloadEntries operation.
setAlbedo(Texture)Sets or updates the albedo.
setAlbedo(TextureFile)Sets or updates the albedo.
setAlphaCutout(float)Sets or updates the alpha cutout.
setAlphaMap(Texture)Sets or updates the alpha map.
setAlphaMap(TextureFile)Sets or updates the alpha map.
setAoMap(Texture)Sets or updates the ao map.
setAoMap(TextureFile)Sets or updates the ao map.
setBoolean(String, boolean)Sets or updates the boolean.
setColor(String, Color)Sets or updates the color.
setDiffuse(Color)Sets or updates the diffuse.
setEmissiveMap(Texture)Sets or updates the emissive map.
setEmissiveMap(TextureFile)Sets or updates the emissive map.
setFloat(String, float)Sets or updates the float.
setHeightIntensity(float)Sets or updates the height intensity.
setHeightMap(Texture)Sets or updates the height map.
setHeightMap(TextureFile)Sets or updates the height map.
setMatcap(Matcap)Sets or updates the matcap.
setMetallic(Texture)Sets or updates the metallic.
setMetallic(TextureFile)Sets or updates the metallic.
setMinimalAlphaIntensity(float)Sets or updates the minimal alpha intensity.
setNormalMap(Texture)Sets or updates the normal map.
setNormalMap(TextureFile)Sets or updates the normal map.
setReceiveLight(boolean)Sets or updates the receive light.
setRoughness(Texture)Sets or updates the roughness.
setRoughness(TextureFile)Sets or updates the roughness.
setShader(String)Sets or updates the shader.
setSpecular(float)Sets or updates the specular.
setTexture(String, Texture)Sets or updates the texture.
setTextureFile(String, TextureFile)Sets or updates the texture file.
setUvSize(float)Sets or updates the uv size.
setVector2(String, JAVARuntime.Vector2)Sets or updates the vector2.
toJson()Performs the toJson operation.