Image Effect Shaders w/ShaderGraph - Unity Tutorial/Showcase

  Рет қаралды 29,297

IronStar Interactive

IronStar Interactive

Күн бұрын

Пікірлер: 62
@00alfredo00
@00alfredo00 2 жыл бұрын
Got this to work after many days (Unity newbie) but wow this looks great, especially the pencil shader. Thank you for this!
@stylie473joker5
@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
@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
@mattsYT42
@mattsYT42 4 жыл бұрын
the links to the blit video are offline. so it's impossible to follow either tutorial :(
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
I've added the blit link into the description, Both of the links are working for me.
@MerrStudio
@MerrStudio 4 жыл бұрын
@@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.
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
@@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
@MerrStudio
@MerrStudio 4 жыл бұрын
@@ironstarinteractive Thank you very much!
@handsomelessking
@handsomelessking 2 жыл бұрын
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)
@666j1
@666j1 2 жыл бұрын
1:52 you dont go over how to add this render feature at all. i dont see outlines(blit) option whatsoever
@ironstarinteractive
@ironstarinteractive 2 жыл бұрын
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
@horizonx4692
@horizonx4692 4 жыл бұрын
there is any video about unity’s Shader Graph to apply a post processing effect in urp ?
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
this was done in urp, do you have some other requirement as well?
@horizonx4692
@horizonx4692 4 жыл бұрын
@@ironstarinteractive i want to green mist shader and want to apply it on camera
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
@@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
@horizonx4692
@horizonx4692 4 жыл бұрын
@@ironstarinteractive thank you so much for your helpful reply i will watch it :)
@kamenriderinfinity
@kamenriderinfinity 3 жыл бұрын
the tutorial that you linked dont have the files available anymore. do you know where else can I get that blit thingy?
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
they are contained in the github repository, here's a link: github.com/BattleDawnNZ/Image-Effects-with-Shadergraph/tree/master/Assets/Renderer%20Feature
@ridlr9299
@ridlr9299 3 жыл бұрын
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.
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
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/
@ridlr9299
@ridlr9299 3 жыл бұрын
@@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...
@ridlr9299
@ridlr9299 3 жыл бұрын
@@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.
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
@@ridlr9299 Is it possible that the script is on the wrong camera?
@ridlr9299
@ridlr9299 3 жыл бұрын
@@ironstarinteractive nope, only one camera. Does it matter if my scene is lit but the shader is unlit?
@ElUniversoconMomoOficial
@ElUniversoconMomoOficial 4 жыл бұрын
This is exactly what I was looking for, thank you SO MUCH for this!
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
no problem
@HootyTooty
@HootyTooty 4 жыл бұрын
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.
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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_reality
@leaves_reality 4 жыл бұрын
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.
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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_reality
@leaves_reality 4 жыл бұрын
@@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?
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
@@leaves_reality is that the shader supplied in the github repository or one you have made yourself?
@leaves_reality
@leaves_reality 4 жыл бұрын
@@ironstarinteractive It's the night vision one, so yes I made it myself but like following along with the steps
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
@@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.
@tmaow
@tmaow 4 жыл бұрын
Thank you so much. I never know you could use gradient node like that
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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
@juanluisgutierrezcontreras1227
@juanluisgutierrezcontreras1227 4 жыл бұрын
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.
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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.
@jan555cool
@jan555cool 3 жыл бұрын
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?
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
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.
@jan555cool
@jan555cool 3 жыл бұрын
@@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.
@meltpack8876
@meltpack8876 3 жыл бұрын
I like that dithering shader! How'd ya do it?
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
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
@biancafragoso8267
@biancafragoso8267 4 жыл бұрын
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?
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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
@ozeistudio6916
@ozeistudio6916 4 жыл бұрын
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
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
thank you.
@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa
@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa 4 жыл бұрын
Very nice!
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
Thank you
@Arxontas10
@Arxontas10 3 жыл бұрын
will this work with hdrp?
@ironstarinteractive
@ironstarinteractive 3 жыл бұрын
I've never used hdrp but I believe they use a similar architecture behind the scenes so it should.
@lobsangwhite
@lobsangwhite 4 жыл бұрын
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.
@ironstarinteractive
@ironstarinteractive 4 жыл бұрын
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.
@iagaming149
@iagaming149 4 жыл бұрын
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 .
Moebius-style 3D Rendering | Useless Game Dev
8:12
Useless Game Dev
Рет қаралды 861 М.
10 Shaders in 10 Minutes - Unity Shader Graph
9:38
Daniel Ilett
Рет қаралды 110 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
1-BIT GRAPHICS IN UNITY | OBRA DINN TUTORIAL - SHADERLAB
6:20
URP Fullscreen Shaders - Unity Shader Graph (Tutorial)
14:51
MichaelsGameLab
Рет қаралды 7 М.
Making an Inktober Shader
8:49
Acerola
Рет қаралды 123 М.
Welcome to Shaderland - An introduction to shaders in Godot
1:12:51
Unity Shader Graph - Fullscreen Shader Tutorial
10:12
Gabriel Aguiar Prod.
Рет қаралды 6 М.
Turning Real Life into a Video Game in 10 minutes - 3D Scanning
8:50
HLSL Shaders VS Shader Graph - Which One To Use?
6:23
Freedom Coding
Рет қаралды 2 М.
Outlines - Devlog 2
13:47
Robin Seibold
Рет қаралды 78 М.
Procedural Animation - Unity Tutorial/Showcase
11:06
IronStar Interactive
Рет қаралды 45 М.
I Recreated Arcane With $0
15:01
Noggi
Рет қаралды 1,8 МЛН