Sets the amount of "metalness" of a specularMaterial().
metalness()
can make materials appear more metallic. It affects the way materials reflect light sources including affects the way materials reflect light sources including directionalLight(), pointLight(), spotLight(), and imageLight().
The parameter, metallic
, is a number that sets the amount of metalness. metallic
must be greater than 1, which is its default value. Higher values, such as metalness(100)
, make specular materials appear more metallic.
Examples
Syntax
metalness(metallic)
Parameters
amount of metalness.
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.