Setting drawInstanced on a existing terrain in the editor works fine in 2018.3.0b7. However, when set on a new terrain at runtime in LWRP, the shader doesn’t render. Is this a know problem and are their any workarounds?
Does it work if, instead, you have instancing enabled, and disable it at runtime?
(I’m thinking it is because the instanced shaders are not built if instancing is disabled at build time…)
1 Like
The terrains get created at runtime in our tool (in this scenario), so guessing this approach won’t work.
Add two terrains, one with with and one without instancing, to a dummy scene and add this scene to the “Scenes Included in Build” list?