org.rajawali3d.materials.methods

Package org.rajawali3d.materials.methods

Types

DiffuseMethod

abstract class DiffuseMethod
abstract class DiffuseMethod

Contains a collection of diffuse shading methods. These methods are used by materials that have lighting enabled. Diffuse shading determines the color of a material when a light shines on it. To use a diffuse method you need to create an instance of one of the classes and then assign it to a material using the Material#setDiffuseMethod(IDiffuseMethod) method:


  material.setDiffuseMethod(new DiffuseMethod.Lambert());
  

IDiffuseMethod

interface IDiffuseMethod
interface IDiffuseMethod

ISpecularMethod

interface ISpecularMethod
interface ISpecularMethod

SpecularMethod

abstract class SpecularMethod
abstract class SpecularMethod

Contains a collection of diffuse shading methods. These methods are used by materials that have lighting enabled. A specular highlight is the bright spot of light that appears on shiny objects when illuminated. The term specular means that light is perfectly reflected in a mirror-like way from the light source to the viewer. To use a specular method you need to create an instance of one of the classes and then assign it to a material using the Material#setSpecularMethod(ISpecularMethod) method:


  material.setSpecularMethod(new SpecularMethod.Phong());