You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert world position (x,z) to uv coordinate (u,v) normalized in a mesh-terrain
CPU way: normalize world position with world AABB of a mesh-terrain to a uv of the weight-map, then sample the weight-map with the uv to get layer-weights
GPU way: raycast to get the world position's RaycastHit.textureCoord, then draw a pixel with the uv and a shader that output layer weights instead of weight-blended color.
Sample the weight-map(s) with (u,v) and get per-layer weight
The text was updated successfully, but these errors were encountered:
requested by several users
RaycastHit.textureCoord
, then draw a pixel with the uv and a shader that output layer weights instead of weight-blended color.The text was updated successfully, but these errors were encountered: