Search Unity

Rendering and clear render texture problem

Discussion in 'General Graphics' started by botove, Dec 9, 2018.

  1. botove

    botove

    Joined:
    Apr 10, 2015
    Posts:
    52
    Hello! I'm rendering one of the layers on render texture, apply image effect on it and blend this texture with another rendering layer later (multiple cameras). The problem is that the render texture doesn't clear properly (solid color, 0 alpha settings).

    I get this kind of stuff when moving camera.
    noclear.PNG

    Can't find the right solution, please point out where is the possible problem.
     
    Last edited: Dec 9, 2018
  2. Deatonjc

    Deatonjc

    Joined:
    Apr 22, 2017
    Posts:
    25
    You tryna render a jpeg?
     
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    How are you doing the clear?
     
  4. botove

    botove

    Joined:
    Apr 10, 2015
    Posts:
    52
    I thought clear is done by clear flags settings, anyway i found the problem. I used Blend One OneMinusSrcAlpha in image effect shader. Thanks for replies.