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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Applying at shader within OnRenderImage on the main camera has no effect on Canvas items?

Discussion in 'Scripting' started by creatify, Sep 21, 2015.

  1. creatify

    creatify

    Joined:
    May 1, 2014
    Posts:
    13
    We're trying to apply a shader that's applied in the OnRenderImage within a script added to the main camera. Everything we've added to a canvas is not effected by the shader. How do we get post process shaders to items all items within a canvas? We've trying adding the script/shader directly to the canvas and that has not effect either?
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Canvas's have their own texture that they render to, and what happens with that texture is up to your canvas display mode. Canvas's should be rendered by your camera unless you have them set to Screen Space - Overlay mode, so make sure your canvas is set to a different mode.
     
    jj_unity328 likes this.
  3. creatify

    creatify

    Joined:
    May 1, 2014
    Posts:
    13
    Thank you for the reply. That works, switched to Screen Space - Camera, and now the shader associated with the main camera is applied to objects within the canvas.