11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/10
Place and render a huge amount of grass fast. GPU Grass runs almost entirely on the GPU which makes it extremely fast.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2021.3.28f1
不兼容
兼容
不兼容
其他兼容性信息

Tested and works in 2021.3.28, 2022.3.4, 2023.1.4.


Requires collections package.

描述

GPU Grass is a replacement for Unity's terrain detail system. This tool provides a way to place grass and other objects onto terrain and render them in a very fast way.


The demo scene and all assets shown in the screenshots are included.


Documentation



Performance


GPU Grass uses very little CPU. In the demo scene on my machine GPU Grass takes 0.05ms during update and 0.021ms during late update. There are no hitches as you move around or when new grass comes into view. Everything is calculated every frame on the GPU. Because of this there are never any spikes or variances in the performance.



Features


  • Very little cpu usage. Almost everything is done on the GPU. The demo scene takes less than 0.05ms cpu on my machine.
  • No hitches. CPU and GPU usage is steady. There are no hitches when new things come into view.
  • LOD system.
    • 1 - 3 lod levels.
    • Vertex or pixel lit per LOD level. Objects up close can be rendered pixel lit and distant objects vertex lit.
    • Shadow settings per LOD level.
    • Dithering. LODs fade into each other and fade out at max draw distance.
  • Procedural placement of objects on terrain based on masks.
    • Custom texture mask.
    • Slope of terrain.
    • Height of terrain.
    • Terrain layer.
  • Multiple terrains. Each GPU Grass manager can render objects on multiple terrains with the same settings.
  • Wind.
  • Max draw distance per object and LOD.
  • Align to ground. Objects can be aligned to the terrain. Unlike most grass solutions GPU Grass does not rotate the objects but instead movies their verts up or down keeping them straight. For example grass on a slope will not be rotated.
  • View bending. Objects can be bent away from camera. Great for top down games for first person games where the player can look down.
  • Thin over distance. Instead of culling objects at max draw distance they can be thinned out based on distance. For example grass close to the camera can be very thick but thinner in the distance.
  • Placement based on random or blue noise. Blue noise can be used to place objects randomly but evenly spaced which is best for grass.
  • Color and scale based on masks.
  • Blend bottom of objects with the color of the terrain.
  • Independant XZ and Y scale of objects.
  • Terrain Holes.


Limitations


These features may be added in the future.


  • Hand or brush placement of objects. Placement of objects currently can only be done procedurally.
  • Occlusion culling. GPU Grass does frustum culling only. Occlusion culling may be added in the future. Also current culling does not take shadows into account but this may also be added in the future.
  • Shader Limitations. A single shader is provided with features that can be turned on and off. This shader is optimized for speed over quality.
    • Normal maps are not supported.
    • PBR shading.
  • Intersecting objects. If you have multiple types of objects they may be placed on top of each other.
  • Biomes. GPU Grass manager cannot blend between settings.
  • Billboards.
  • Transparency. Opaque or alpha test only.
  • Editor undo.
  • Save settings while in play mode.
  • Non random rotation. Objects are randomly rotated around y. X and Z rotations are 0.

These are features that GPU Grass cannot do.


  • Collision. Because everyting happens on the GPU based on masks collision cannot be generated for objects rendered with GPU Grass. The CPU does not know the position of size of objects.
  • Shader graph. Unity's shader graph does not currently support shaders that use instancing.


See Documentation for more details.

技术细节

Tested and works in 2020.3.36, 2021.3.6, 2022.1.10. Crashes in 2022.2 alpha.


Requires jobs package.

GPU Grass

(暂无评分)
134 users have favourite this asset
(134)
$40
席位
1
更新的价格和增值税在结算时计算
58 views in the past week
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
78.7 MB
最新版本
1.2.0
最新发布日期
2023年7月17日
原始 Unity 版本
2021.3.28
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR