Sets the amount of gloss ("shininess") of a specularMaterial().
Shiny materials focus reflected light more than dull materials. shininess()
affects the way materials reflect light sources including directionalLight(), pointLight(), and spotLight().
The parameter, shine
, is a number that sets the amount of shininess. shine
must be greater than 1, which is its default value.
Examples
Syntax
shininess(shine)
Parameters
shine
Number: amount of shine.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/material.js and open a pull request!
Related References
copyToContext
Copies the shader from one drawing context to another.
inspectHooks
Logs the hooks available in this shader, and their current implementation.
modify
Returns a new shader, based on the original, but with custom snippets of shader code replacing default behaviour.
setUniform
Sets the shader’s uniform (global) variables.