Sunday, September 27, 2020

ThreeJS MeshLambertMaterial



A material for non-shiny surfaces, without specular highlights.


The material uses a non-physically based Lambertian model for calculating reflectance. This can simulate some surfaces (such as untreated wood or stone) well, but cannot simulate shiny surfaces with specular highlights (such as varnished wood).


Shading is calculated using a Gouraud shading model. This calculates shading per vertex (i.e. in the vertex shader) and interpolates the results over the polygon's faces


Due to the simplicity of the reflectance and illumination models, performance will be greater when using this material over the MeshPhongMaterial, MeshStandardMaterial or MeshPhysicalMaterial, at the cost of some graphical accuracy.




References:

https://threejs.org/docs/#api/en/materials/MeshLambertMaterial


No comments:

Post a Comment