Search Unity

RenderTexture and Ambient Light

Discussion in 'General Graphics' started by jordi_boni, Nov 28, 2014.

  1. jordi_boni

    jordi_boni

    Joined:
    Feb 7, 2013
    Posts:
    18
    I am developing a driving game and I get an error with the mirror render textures in night mode.

    If I set the ambient light to (5,5,15) then my render texture looks darker than main scene. How can I solve this? If I set the ambient light to (26,32,46) the render texture looks dark too.

    rtt.jpg
     
  2. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    Probably because the object it's rendered on is being shaded.
    Set the plane that the render texture is on to one of the self-illuminated shaders.
     
    andrewiscoding likes this.
  3. jordi_boni

    jordi_boni

    Joined:
    Feb 7, 2013
    Posts:
    18
    It works fine!