Search Unity

Question DrawInstanced terrain with scneVIew.SetSceneViewShaderReplace(..)

Discussion in 'World Building' started by MechaWolf99, Jan 23, 2023.

  1. MechaWolf99

    MechaWolf99

    Joined:
    Aug 22, 2017
    Posts:
    294
    Hello, I am working on an editor tool where you can use the
    sceneView.SetSceneViewShaderReplace(..)
    method to render a whole scene with a single shader.

    However, I am running in to an issue where terrains with
    DrawInstanced
    set to
    true
    become invisible when rendered with the custom shader.

    Any insight in to why, what
    DrawInstanced
    is doing, and how to support it would be great, thank you!