make_water: make_water

View source: R/make_water.R

make_waterR Documentation

make_water

Description

Makes the water in the 3D elevation map.

Usage

make_water(
  heightmap,
  waterheight = mean(heightmap),
  watercolor = "lightblue",
  zscale = 1,
  wateralpha = 0.5
)

Arguments

heightmap

A two-dimensional matrix, where each entry in the matrix is the elevation at that point. All points are assumed to be evenly spaced.

waterheight

Default '0'.

watercolor

Default 'blue'.

zscale

Default '1'. The ratio between the x and y spacing (which are assumed to be equal) and the z axis. For example, if the elevation levels are in units of 1 meter and the grid values are separated by 10 meters, 'zscale' would be 10.

wateralpha

Default '0.5'. Water transparency.


rayshader documentation built on July 9, 2023, 7:11 p.m.