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 Transparent Issue with Graphics.DrawMeshInstanced

Discussion in 'General Graphics' started by ahmaderfani12, Jan 10, 2022.

  1. ahmaderfani12

    ahmaderfani12

    Joined:
    Nov 16, 2017
    Posts:
    2
    I have been working on a system that uses 'Graphics.DrawMeshInstancedProcedural' to generate many meshes. Everything is OK except for the issue with the transparent shaders. When I set the shader(shader graph) surface to transparent the orders get messed up. I used a technique with ForwardRenderer:


    with that the orders are Ok but some new issue appears on transparent parts:

     
    Last edited: Jan 10, 2022
  2. ahmaderfani12

    ahmaderfani12

    Joined:
    Nov 16, 2017
    Posts:
    2
    OK, I found it :) just use Alpha Clipping(threshold) to prevent rendering those areas.