[1342] Custom terrain grass shader not works on open-beta(Unity2022)
complete
るーにゃ@xlwnya
World: https://vrchat.com/home/world/wrld_9787aa08-a965-4b76-9b19-6e448ba87a8d, https://vrchat.com/home/world/wrld_aee08c40-692d-43d9-92e8-3e56d266b709
The grasses disappears on open-beta client(Unity2022)
I define "Hidden/TerrainEngine/Details/Vertexlit" shader and use it on terrain in this world.
I think re-upload on Unity2022 may fix this(it was happened on 2018->2019 and I re-uploaded on 2019).
<- open-beta, -> live
Log In
StormRel
complete
This post was marked as
available in future release
StormRel
Merged in a post:
Unity Terrain Tree Billboard shaders broken in VR
CaminoVR
Whenever launching VRChat in VR mode, custom terrain tree billboard shaders, be it the ones applied onto the tree model itself or overridden by modifying the global terrain billboard shader that is "Hidden/TerrainEngine/BillboardTree" do not work.
Here is a simple shader I made as a drop replacement for the "Hidden/TerrainEngine/BillboardTree" that is supposed to fade the trees out with distance to greatly reduce the "pop-in" effect of the trees whenever they come into view. https://gist.github.com/rs189/2f9feff6e206d29cc515eef03d2b20ae
Just place it in your Assets folder and on the Desktop mode of VRChat it will work just fine whereas in VR mode it will not work at all.
You might need to adjust the
minDist
and maxDist
depending on your terrain and the number of trees or you can just replace return col;
with return float4(1,1,1,1);
to see that it completely ignores the shader in VR mode.This is probably related to
CaminoVR
This also affects "Hidden/TerrainEngine/BillboardTree" though even without an LOD group as described here https://feedback.vrchat.com/bug-reports/p/unity-terrain-tree-billboard-shaders-broken-in-vr
るーにゃ@xlwnya
I found a root cause. This is not a shader problem.
The grass will disappear when the TerrainDetail prefab of grass has LOD Group. Removing it solves problem.
るーにゃ@xlwnya
For testing: Here is old version. (this world may have LOD Group on Grass and grass disappear on 2022) https://vrchat.com/home/world/wrld_97a9505b-2651-404e-ab3b-1afd9169695c
るーにゃ@xlwnya
Still no grass on build 1371. I'm waiting for new VRCSDK release for Unity2022.
StormRel
tracked