Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Help Wanted Declaring and reading frame buffer inputs in a shader?

Discussion in 'General Graphics' started by entity_NULL, Apr 1, 2021.

  1. entity_NULL


    Jan 28, 2020
    I'm attempting to implement a basic deferred pipeline using SRP, and one of the roadblocks I'm running into is getting my deferred lighting shader to declare and read frame buffer inputs (the gbuffers). One of the examples I'm going off of is Felipe Lira's tutorial from 2018, which has a github repo here: I'm not copying it exactly, as I'm using (what I believe to be) the more up to date implementation of the render pass system (example here:

    I'm getting an unrecognized identifier when attempting to use UNITY_DECALRE_FRAMEBUFFER_INPUT_FLOAT in my deferred lighting shader (example for which is here: I'm assuming this macro might be deprecated if I'm getting an error like that, so is there an equivalent one I should be using instead?

    Thanks in advance!