org.rajawali3d.materials / Material / setSpecularMethod

setSpecularMethod

open fun setSpecularMethod(specularMethod: ISpecularMethod!): Unit

The specular method specifies the mirror-like reflection of light (or of other kinds of wave) from a surface, in which light from a single incoming direction (a ray) is reflected into a single outgoing direction. This can be set using the setSpecularMethod() method:


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

Parameters

specularMethod - ISpecularMethod!: The specular method to use

open fun setSpecularMethod(specularMethod: ISpecularMethod!): Unit

The specular method specifies the mirror-like reflection of light (or of other kinds of wave) from a surface, in which light from a single incoming direction (a ray) is reflected into a single outgoing direction. This can be set using the setSpecularMethod() method:


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

Parameters

specularMethod - ISpecularMethod!: The specular method to use