Skip to main content

Material

Complete API reference for Material, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Material

Component: no


public class Material

Constructors

SignatureDescription
Material(Material)Executes Material and returns after the underlying engine call finishes.
Material()Executes Material and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
materialMaterialRepresents the material value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
shaderStringget/setVirtual attribute exposed by getShader. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
getColor(String)ColorReturns the current color.
findColor(String)ColorPerforms the findColor operation using the provided parameters (entryName).
setColor(String, Color)voidSets or updates the color.
setDiffuse(Color)voidSets or updates the diffuse.
getVector2(String)JAVARuntime.Vector2Returns the current vector2.
findVector2(String)JAVARuntime.Vector2Performs the findVector2 operation using the provided parameters (entryName).
setVector2(String, JAVARuntime.Vector2)voidSets or updates the vector2.
getBoolean(String)booleanReturns the current boolean.
findBoolean(String)booleanPerforms the findBoolean operation using the provided parameters (entryName).
setBoolean(String, boolean)voidSets or updates the boolean.
setReceiveLight(boolean)voidSets or updates the receive light.
getFloat(String)floatReturns the current float.
findFloat(String)floatPerforms the findFloat operation using the provided parameters (entryName).
setFloat(String, float)voidSets or updates the float.
setMinimalAlphaIntensity(float)voidSets or updates the minimal alpha intensity.
setHeightIntensity(float)voidSets or updates the height intensity.
setUvSize(float)voidSets or updates the uv size.
setAlphaCutout(float)voidSets or updates the alpha cutout.
setSpecular(float)voidSets or updates the specular.
getTexture(String)TextureReturns the current texture.
findTexture(String)TexturePerforms the findTexture operation using the provided parameters (entryName).
setTexture(String, Texture)voidSets or updates the texture.
setTextureFile(String, TextureFile)voidSets or updates the texture file.
setAlbedo(Texture)voidSets or updates the albedo.
setAlbedo(TextureFile)voidSets or updates the albedo.
setNormalMap(Texture)voidSets or updates the normal map.
setNormalMap(TextureFile)voidSets or updates the normal map.
setRoughness(Texture)voidSets or updates the roughness.
setRoughness(TextureFile)voidSets or updates the roughness.
setMetallic(Texture)voidSets or updates the metallic.
setMetallic(TextureFile)voidSets or updates the metallic.
setAoMap(Texture)voidSets or updates the ao map.
setAoMap(TextureFile)voidSets or updates the ao map.
setHeightMap(Texture)voidSets or updates the height map.
setHeightMap(TextureFile)voidSets or updates the height map.
setEmissiveMap(Texture)voidSets or updates the emissive map.
setEmissiveMap(TextureFile)voidSets or updates the emissive map.
setAlphaMap(Texture)voidSets or updates the alpha map.
setAlphaMap(TextureFile)voidSets or updates the alpha map.
setMatcap(Matcap)voidSets or updates the matcap.
reloadEntries()voidExecutes reloadEntries and returns after the underlying engine call finishes.
toJson()StringExecutes toJson and returns after the underlying engine call finishes.

Static Methods

SignatureReturnsDescription
loadFile(MaterialFile)MaterialLoads file into the object.