Search Unity

Shader sometimes renders black vertices which involves compute shader, unlit shader

Discussion in 'Shaders' started by Ramphic, May 8, 2018.

  1. Ramphic

    Ramphic

    Joined:
    Jun 21, 2017
    Posts:
    60
    Hi, I have a compute shader code which decides the position of vertices. And unlit shader code which gives color to these vertices. It works fine most of the times. But sometimes rarely all vertices appear in black.
    I am also using instances of compute shader, as I need multiple of them to run parallelly.

    It happens only in single pass stereo, with VR set up (using HTC Vive). Using Unity version -2017.2.0f3.

    Anyone has any idea why it's happening so?
     
  2. Ramphic

    Ramphic

    Joined:
    Jun 21, 2017
    Posts:
    60
    Hi, does anyone know why so?