Metallic Material

metal(color = "#ffffff", fuzz = 0, importance_sample = FALSE)

## Arguments

color Default white. The color of the sphere. Can be either a hexadecimal code, R color string, or a numeric rgb vector listing three intensities between 0 and 1. Default 0. The roughness of the metallic surface. Maximum 1. Default FALSE. If TRUE, the object will be sampled explicitly during the rendering process. If the object is particularly important in contributing to the light paths in the image (e.g. light sources, refracting glass ball with caustics, metal objects concentrating light), this will help with the convergence of the image.

## Value

Single row of a tibble describing the metallic material.

## Examples

#Generate the cornell box with a single metal sphere in the center
scene = generate_cornell() %>%
aperture=0, fov=40, ambient_light=FALSE, parallel=TRUE)