12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

materialPurpose2materialControls the reflectance properties of surfaces and patchesSyntaxDescriptionmaterial shinymaterial dullmaterial metalmaterial([ka kd ks])material([ka kd ks n])material([ka kd ks n sc])material defaultmaterial sets the lighting characteristics of surface and patch objects.material shiny sets the reflectance properties so that the object has a highspecular reflectance relative the diffuse and ambient light and the color of thespecular light depends only on the color of the light source.material dull sets the reflectance properties so that the object reflects morediffuse light, has no specular highlights, but the color of the reflected lightdepends only on the light source.material metal sets the reflectance properties so that the object has a veryhigh specular reflectance, very low ambient and diffuse reflectance, and thecolor of the reflected light depends on both the color of the light source and thecolor of the object.material([ka kd ks]) sets the ambient/diffuse/specular strength of theobjects.material([ka kd ks n]) sets the ambient/diffuse/specular strength andspecular exponent of the objects.material([ka kd ks n sc]) sets the ambient/diffuse/specular strength,specular exponent, and specular color reflectance of the objects.material default sets the ambient/diffuse/specular strength, specularexponent, and specular color reflectance of the objects to their defaults.RemarksThe material command sets the AmbientStrength, DiffuseStrength,SpecularStrength, SpecularExponent, and SpecularColorReflectance-296

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!