Can't use more than 9 grass types
As requested, here is a bug report for not being able to use more than 9 grass types in 4.10.
I have tried in both my own landscape material i use in our project and a super simple one and both fail to show more than 9 grass types. When I add 10 or more grass types the first one disappears and the 10+ types doesn't show up either.
The material I made just contains 11 layers named 1-11 and 11 grasses with the same names and random grass types assigned, landscape layer samplers named 1-11 are assigned to the grass inputs..
Here is a copy to paste in an empty material to replicate the problem:
Just assign some grass types.
Hi, this is a hardcoded limitation in the shader file Engine\Shaders\LandscapeGrassWeight.usf. It renders multiple layers in multiple passes, and each pass can do 4 layer except the first in which the first two values are used for the heightmap.
The original shader file only allowed for 3 passes, which gave 2 layers in the first pass and 4 in the subsequent two passes for a total of 10 layers.
The attached file supports two more passes, so this expands the number of supported grass layers to 18. Just replace the shader with the updated version. You can keep modifying the file yourself if you want more than that.
The attached shader is valid for 4.9 and 4.10.
answered Dec 15 '15 at 10:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here