Got this to work after many days (Unity newbie) but wow this looks great, especially the pencil shader. Thank you for this!
@stylie473joker5 Жыл бұрын
The blit doesn't work with Lts 2022 sadly as some of it has been deprecated which means it needs to be updated using the new method can you please do a video on that ?
@bigcaka7725 Жыл бұрын
it wud look better if you lined the texture to the uvs instead of the screen. made the scale based on the size also make it follow the direction the objects
@mattsYT424 жыл бұрын
the links to the blit video are offline. so it's impossible to follow either tutorial :(
@ironstarinteractive4 жыл бұрын
I've added the blit link into the description, Both of the links are working for me.
@MerrStudio4 жыл бұрын
@@ironstarinteractive Yes, but the links in the tutorial by Unity's description are no longer working. I personally tried to download your project, but I cannot find the Blit script anywhere.
@ironstarinteractive4 жыл бұрын
@@MerrStudio I see, I didn't realize, Unfortunately I have no control over the unity video, however the blit script is in the github repository it can be found here: github.com/BattleDawnNZ/Image-Effects-with-Shadergraph/tree/master/Assets/Renderer%20Feature
@MerrStudio4 жыл бұрын
@@ironstarinteractive Thank you very much!
@handsomelessking2 жыл бұрын
Does this work woth Render Textures? The reason is the main camera goes in to a Render Texture (down resd), and than that goes in to a shader graph to ofset the RGB (so the Red value of the image is moved by 0.01), does it work? (Only one camera, down resd, and using shader graphs with render texture)
@666j12 жыл бұрын
1:52 you dont go over how to add this render feature at all. i dont see outlines(blit) option whatsoever
@ironstarinteractive2 жыл бұрын
sorry about that, the blit renderer feature is not built into urp I got it from this video by unity kzbin.info/www/bejne/oKCqkKejjbqLaq8 however their link to the files are down so you can get the scripts from the github repository for this project here github.com/BattleDawnNZ/Image-Effects-with-Shadergraph/tree/master/Assets/Renderer%20Feature
@horizonx46924 жыл бұрын
there is any video about unity’s Shader Graph to apply a post processing effect in urp ?
@ironstarinteractive4 жыл бұрын
this was done in urp, do you have some other requirement as well?
@horizonx46924 жыл бұрын
@@ironstarinteractive i want to green mist shader and want to apply it on camera
@ironstarinteractive4 жыл бұрын
@@horizonx4692 for a distance based mist shader you'll probably want to use the screens depth buffer to lerp between the screen and green, the result should be like a green fog, and for some added fanciness you could add a little perlin noise offset to it. also the blit shader feature is not in unity by default you can find it in the github repository in the description or from where I got it kzbin.info/www/bejne/oKCqkKejjbqLaq8
@horizonx46924 жыл бұрын
@@ironstarinteractive thank you so much for your helpful reply i will watch it :)
@kamenriderinfinity3 жыл бұрын
the tutorial that you linked dont have the files available anymore. do you know where else can I get that blit thingy?
@ironstarinteractive3 жыл бұрын
they are contained in the github repository, here's a link: github.com/BattleDawnNZ/Image-Effects-with-Shadergraph/tree/master/Assets/Renderer%20Feature
@ridlr92993 жыл бұрын
Hi IronStar. I'm using 2D URP so I don't have access to the renderer features. I'm trying to use this script instead: [ExecuteInEditMode] public class PostprocessEffect : MonoBehaviour { public Material material; void OnRenderImage (RenderTexture source, RenderTexture destination) { Graphics.Blit(source, destination, material); } } on my camera, but it doesn't seem to be doing anything when I modify the shader.
@ironstarinteractive3 жыл бұрын
that's strange that code should work it's possible that it's the shader that is the problem, the first thing that comes to mind is that the textures reference name has to be "_MainTex" to work, here's a tutorial on the topic it's not in urp but it has the same code snippet and it works www.alanzucconi.com/2015/07/08/screen-shaders-and-postprocessing-effects-in-unity3d/
@ridlr92993 жыл бұрын
@@ironstarinteractive yeah that’s the tutorial I was looking at actually. Maybe it doesn’t work with shader graph, or maybe my graph settings are wrong? idk...
@ridlr92993 жыл бұрын
@@ironstarinteractive are there specific graph settings, urp settings, or camera settings that are necessary to make it work properly? Even just something like a simple invert colors mode has no effect, so I know the problem is not the shader logic itself.
@ironstarinteractive3 жыл бұрын
@@ridlr9299 Is it possible that the script is on the wrong camera?
@ridlr92993 жыл бұрын
@@ironstarinteractive nope, only one camera. Does it matter if my scene is lit but the shader is unlit?
@ElUniversoconMomoOficial4 жыл бұрын
This is exactly what I was looking for, thank you SO MUCH for this!
@ironstarinteractive4 жыл бұрын
no problem
@HootyTooty4 жыл бұрын
Hey, would you be able to post a link to the tutorial you mentioned regarding everything around Blit() and all that? I am familiar with writing shader code, but the whole setting up of especially image effect in unity 2019.3 and higher is new to me.
@ironstarinteractive4 жыл бұрын
This is where I got the shader feature for the blit kzbin.info/www/bejne/oKCqkKejjbqLaq8 it's not really a tutorial more a showcase
@leaves_reality4 жыл бұрын
Hey is there any way to do this without the Blit? I've been trying to get the Sobel and Blit installed for literal hours and I can't figure it out.
@ironstarinteractive4 жыл бұрын
For the blit you should just need the two scripts in the folder marked renderer feature. if that doesn't work you could do it manually through script here's a few links that might help: answers.unity.com/questions/1594780/manual-graphicsblit.html docs.unity3d.com/ScriptReference/Graphics.Blit.html
@leaves_reality4 жыл бұрын
@@ironstarinteractive Well I think I got the blit installed, and the shader works in the scene view, but in the game view it's just green. Any Ideas why?
@ironstarinteractive4 жыл бұрын
@@leaves_reality is that the shader supplied in the github repository or one you have made yourself?
@leaves_reality4 жыл бұрын
@@ironstarinteractive It's the night vision one, so yes I made it myself but like following along with the steps
@ironstarinteractive4 жыл бұрын
@@leaves_reality the only things a can think of that might cause this when you add the texture into the blackboard (the side panel where your inspector variables are) you have to make sure that its reference name is set to "_MainTex", the other possibility is that if your using the depth buffer you'll need to enable the depth buffer in the pipeline asset.
@tmaow4 жыл бұрын
Thank you so much. I never know you could use gradient node like that
@ironstarinteractive4 жыл бұрын
it's pretty useful if you need a little more flexibility you can use a lookup texture a good example is to use the x for brightness and the y for hue and then you can get custom gradients per color
@juanluisgutierrezcontreras12274 жыл бұрын
Hi. I try to download the unity tutorial and the links doesn't work. Can you please upload the unity tutorial or the blit?. I can't follow your tutorial without that. Thanks you in advice.
@ironstarinteractive4 жыл бұрын
The link works for me, I have no other way to upload the files, if you want this is where I got the blit shader feature from kzbin.info/www/bejne/oKCqkKejjbqLaq8.
@jan555cool3 жыл бұрын
hey man great tutorial, I've got a question. my camera renders everything perfectly according to whatever I created with a shadergraph. However when I start the game it seems like the _MainTex defaults to white which leads to a white screen. do you know what I'm missing?
@ironstarinteractive3 жыл бұрын
Sorry I don't know what could be causing this, it's been a while since I worked on this, the only things I can think that might be affecting this are, Make Sure the "reference name" is "_MainTex", or possibly something in your shader is affected by time, as the time value functions differently in the editor compared to in the game.
@jan555cool3 жыл бұрын
@@ironstarinteractive thanks for the quick response, I figured it out. I was using this method for a blur effect in my VR app and the white screen was caused by setting the stereo rendering mode to single pass. So I changed it to multi pass and it works fine now.
@meltpack88763 жыл бұрын
I like that dithering shader! How'd ya do it?
@ironstarinteractive3 жыл бұрын
Should be able to just plug the color channel from the texture sample into the built in dither node and then plug the output into the albedo of the master node
@biancafragoso82674 жыл бұрын
Hey!!Very nice tutorial!!Thanks!I'm new at unity and i want to change between visions!!At an specific time of the game i want night vision and then i want to back to normal, then thermal vision and others visions!!! What is the best way to do that?
@ironstarinteractive4 жыл бұрын
I haven't tried this myself but I'm pretty sure you could change the materials shader at runtime, you'll probably just need a reference to the material and change it in script. Here's the documentation on the topic docs.unity3d.com/ScriptReference/Material-shader.html?_ga=2.241923202.1217714132.1589754766-2085025874.1571011347
@ozeistudio69164 жыл бұрын
you re amazing i really love younp you re so usful i would love helping you in any way possible as a another starting game dev on unity
@ironstarinteractive4 жыл бұрын
thank you.
@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa4 жыл бұрын
Very nice!
@ironstarinteractive4 жыл бұрын
Thank you
@Arxontas103 жыл бұрын
will this work with hdrp?
@ironstarinteractive3 жыл бұрын
I've never used hdrp but I believe they use a similar architecture behind the scenes so it should.
@lobsangwhite4 жыл бұрын
Hi, first of all nice tutorial is just what I was in need (Or I think so far). The point is I'm making a radial fade in/out over the camera and is working but I have no idea how I make it transparent. Currently my shader just project white circle with black vignette. Thanks in advance.
@ironstarinteractive4 жыл бұрын
if you've got the white and black where you want them, you could use it as the t value for a lerp, and just lerp between the screen texture and and your desired fade color.
@iagaming1494 жыл бұрын
this is the tutorial i was looking for but i could not watch this video , TOO much poor quality. it started my headache , and voice is low. please improve video making . your tutorials are good .