Displace a Mesh
displace_mesh(
mesh,
displacement_texture,
displacement_scale = 1,
displacement_vector = FALSE,
id = NA,
verbose = TRUE
)The mesh.
Image or matrix/array that will be used to displace the mesh
Default 1. Intensity of the displacement effect.
Higher values result in greater displacement.
Default FALSE. Whether to use vector displacement.
If TRUE, the displacement texture is interpreted as providing a 3D displacement vector.
Otherwise, the texture is interpreted as providing a scalar displacement.
Default NA (all shapes). The shape index to have new normals calculated.
Default TRUE. Whether to print displacement texture information.
raymesh object
if(run_documentation()) {
#Let's construct a mesh from the volcano dataset
}
#> NULL