Estimate a lat-long environment map's scene white and pass it to
render_white_balance() as reference_white. This is a camera-style white
balance for renders lit by an environment map.
render_environment_white_balance(
image,
environment_map,
target_white = "D65",
bake = TRUE,
weighting = "cosine",
hemisphere = "upper",
environment_colorspace = NULL,
environment_white = NULL,
filename = NULL,
preview = FALSE
)A white-balanced rayimg. The estimated white is attached as the
environment_white attribute.
3-layer RGB/4-layer RGBA array, rayimg, or filename.
Lat-long environment map image, rayimg, array, or filename.
Default "D65". Target white (XYZ Y=1 or named).
Default TRUE. Passed to render_white_balance().
Default "cosine". Passed to the environment white
estimator.
Default "upper". Passed to the environment white
estimator.
Default NULL. Optional colorspace descriptor
used to tag environment_map on read.
Default NULL. Optional white point used to tag
environment_map on read.
Default NULL. Output path.
Default FALSE. If TRUE, display the image.