Class Material

java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.Material

public class Material extends Node

Material contains properties for rendering a surface. The first use case is to apply a texture to a Mesh.

This class provides several functionalities:

  • It can set and get the texture.
  • It can set and get the diffuse color.
  • It can set and get the specular color.
  • It can set and get the emission color.
  • It can set and get the shininess.
  • It can set and get the lit status.
  • It can serialize and deserialize itself to and from JSON format.