Complete system for building nice looking grass.
Consists of grass mesh editor and a special shader that gives an illusion of grass being rendered "inside" the mesh volume.
Grass look is highly configurable, it handles wind, faked motion blur, proper intersections with other objects and mowing expansion. For live demos look at Unity's forum thread here.
Requires Unity 3.1, works on GPUs with SM3.0, requires Pro for right objects vs grass intersections.
作者: ku 时间: 2013-9-29 21:30
不错的草皮作者: ku 时间: 2013-9-29 22:36
我下载了 当导入到unity3d时总是卡在 grassshader_ALT.shader就造成unity假死?为什么?版请检查一下,如果你能正常使用请另外导出一份作者: 艾西格亚 时间: 2013-9-29 22:57
这里有个说明先参照一下:
1. Create empty game object and add VolumeGrass script.
a. Adding nodes - shift click, adding bezier handles - alt click
b. Shift click on edge will insert node between
c. Alt+shift click to define arbitral tesselation points on mesh
d. Adjust settings and click "Build"
Note: choose Hand Tool from Transform Tools palette to disable multiselection when adding nodes.
2. Add SetupForGrassRendering script to the camera and choose layers with objects that intersect the grass, keep in mind:
a. make it simple (don't render whole scene into temporary depth buffer, but objects you need to properly intersect grass only)
b. don't choose layers with grass (which would cause grass to be "self-occluded" and disappear during rendering)
3. If you intend to use LODs (up to 4 Level Of Detail meshes) for different distances, add VolumeGrassLODAdjuster script to your grass object.