Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question DrawInstanced terrain with scneVIew.SetSceneViewShaderReplace(..)

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

  1. MechaWolf99

    MechaWolf99

    Joined:
    Aug 22, 2017
    Posts:
    246
    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!