Kink3d / kDecals

Projection Decals for Unity's Universal Render Pipeline.
MIT License
532 stars 53 forks source link

Editor hangs as soon as a kDecal shares a scene with a terrain #19

Open besttof opened 4 years ago

besttof commented 4 years ago

Whenever a kDecal is placed in a scene that contains a terrain, or when a terrain is created in a scene where kDecals are present, the editor hangs almost instantly. Sadly, no useful data is logged in the editor log.

Unity 2019.3f6 macOS

kDecal revision: 493ce6da5f644a6b3e464fef633111af8f1a3e3a

Relevant packages in use:

"com.unity.device-simulator": "2.0.0-preview", "com.unity.render-pipelines.universal": "7.2.0", "com.unity.shadergraph": "7.2.0", "com.unity.terrain-tools": "3.0.1-preview",

mrsafacon commented 4 years ago

Issue replicated using:

If the terrain or decal are disabled in scene the Editor works fine. As soon as both are enabled the Editor crashes.

JuniorDjjr commented 4 years ago

Unity 2020.1.0b12 here. Also tested with some different terrain shaders and unlit decal.
Maybe it isn't adapted to terrain yet, sadly, there is no results searching for "terrain" on this repository.

pheamit commented 4 years ago

Any updates on this issue would be greatly appreciated!

KirillPH commented 4 years ago

This is kind of a weird problem, if you disable the decal culling, Unity will not crash any more. Seems like a bug when doing decal culling with Terrain.