org.rajawali3d.materials / Material / setDiffuseMethod

setDiffuseMethod

open fun setDiffuseMethod(diffuseMethod: IDiffuseMethod!): Unit

The diffuse method specifies the reflection of light from a surface such that an incident ray is reflected at many angles rather than at just one angle as in the case of specular reflection. This can be set using the setDiffuseMethod() method:


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

Parameters

diffuseMethod - IDiffuseMethod!: The diffuse method

open fun setDiffuseMethod(diffuseMethod: IDiffuseMethod!): Unit

The diffuse method specifies the reflection of light from a surface such that an incident ray is reflected at many angles rather than at just one angle as in the case of specular reflection. This can be set using the setDiffuseMethod() method:


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

Parameters

diffuseMethod - IDiffuseMethod!: The diffuse method