Above you can see my render pipeline asset + the shader giving off the wrong effect.
In the full screen pass I am applying the material made with the shader below (i’m just trying to see any change on the screen, like a “hello world” kind of shader).
If I change the injection point, it just covers various layers of the game with grey. My aim is to have the entire screen changed by the shader, like in this case study:
Not sure what I’m doing wrong. My URP asset is set correctly in graphics settings, on the camera, it has a renderer. If URP wasn’t set up correctly, I believe I wouldn’t be getting the grey texture covering the screen at all.
Would love some help/explanation as to what I’m missing.
If this is a URP project, make sure that you check the Opaque Texture option on the Universal Render Pipeline Asset in your project. That will allow your rendered scene to be copied to the screen texture - which is what the Scene Color node uses.
TY very much for your interest, that checkbox was indeed unchecked, although it didn’t solve the problem, is there something I need to do to “reload” the scene or something like that?
For future reference, my pipeline asset below:
In order to begin debugging this, I recommend that you simplify your Shader Graph shader. Try only plugging the Scene Color node into the Base Color port of the Master Stack and disconnect everything else. If that shader is working correctly, you should just get standard rendering and it should appear as though nothing has changed. Once you get to that point, then you can begin to offset the UVs to introduce the distortion.
I see I made a little mistake now, your previous suggestion to check that “opaque texture” box did alter something after all – the shader now covers everything with the camera’s background color rather than simple gray:
Per your suggestion, I believe this shader should be sufficient to test things out, because it’ll show 4 airplanes, right? (Just plugging the base color into scene color has the same effect, just checked.)
Yes, the above shader should tile the screen 4 times. Is that what you’re seeing, or are you getting something different? If you’re getting the screen tiled 4 times, you’ve got the right result and you should be able to proceed with creating a more complex shader.
Nope, I’m just getting the solid camera bg color all over the screen. I should be seeing the F-16 fighter you see in one of the screenshots above copied 4 times.
1yrpez – I recorded a quick video of what’s happening, when I set the injection point to earlier, the shader stops covering it and simply appears to do nothing at all. When the injection point is later, the shader just covers everything with green. No tiling in sight.