add_water() uses the output of detect_water to add a water color to the map.detect_water() uses a flood-fill algorithm to detect bodies of water of a user-specified minimum area.Rayshader also has functions to add water and generate overlays: The user can also optionally specify the colors at the corners, but create_texture will interpolate those if they aren’t given. create_texture() programmatically creates texture maps given five colors: a highlight, a shadow, a left fill light, a right fill light, and a center color for flat areas.Otherwise, the user can specify a single color that will be marked as completely transparent, or set the full overlay as partly transparent. If the map includes transparency, this is taken into account when overlaying the image. add_overlay() takes a 3 or 4-layer RGB/RGBA array and overlays it on the current map.add_shadow() takes two of the shadow maps above and combines them, scaling the second one (or, if the second is an RGB array, the matrix) as specified by the user.lamb_shade() uses a single user specified light direction to calculate a local shadow map based on the dot product between the surface normal and the light direction for an elevation matrix.height_shade() calculates a color for each point on the surface using a direct elevation-to-color mapping.texture_shade() calculates a shadow for each point on the surface using the method described by Leland Brown in “Texture Shading: A New Technique for Depicting Terrain Relief.”.This results in valleys being darker than flat areas and ridges. ambient_shade() creates an ambient occlusion shadow layer, darkening areas that have less scattered light from the atmosphere.sphere_shade also includes 7 built-in palettes: “imhof1”, “imhof2”, “imhof3”, imhof4“,”desert“,”bw“,”unicorn”. A texture can be generated with the create_texture function, or loaded from an image. sphere_shade() maps an RGB texture to a hillshade by spherical mapping.By default, this also scales the light intensity at each point by the dot product of the mean ray direction and the surface normal (also implemented in function lamb_shade, this can be turned off by setting lambert=FALSE. ray_shade() uses user specified light directions to calculate a global shadow map for an elevation matrix.Rayshader has seven functions related to mapping:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |