How To Create A Dissolve Shader In Godot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys today I show you how you can create your own dissolve Shader in G do I created a simple scene consisting of a camera light environment floor and an object that we use for the dissolve Shader select the box and choose a material override as a Shader material go to Shader new Shader and check if the type is visual Shader because we're doing a visual Shader here you can choose buildin Shader if you want to it's up to you and press create so now go to visual Shader and open it up and create an texture Tod parameter for the Alo and call it albeer as well then just put in the sampler 2D to a texture 2D and from there you can put it in the Alo output so you have any texture you can choose from it's up to you next we choose another uh texture J for a noise texture where we choose just a fast noise a light texture and we pass this into to Alpha channel in order to see the effects right there so next we choose the time put it inside a sign function and remapped the sign function because it's from minus one to 1 and we pass this into alas SK threshold in order to see the disolving effect so next we choose to create a speed parameter in order to manipulate the time and to make it faster or whatever you prefer [Music] make some space now we create the ad operation in order to get an offset for the edge we pass this inside the step and connect it with its red channel of the noise texture and put it inside the emission to get a lighting effect next we create the color um call it light color and choose any color you like and connect it with the mix function pass this inside the B channel so we get a mix from zero to our color and pass this in X depending on our time with an offset in order to see this border effect and we can also change its color if we want to and it looks already like that now the light needs to shine more strongly right in order to get those dissolving effect we want last point we have to create another parameter a float parameter call it strength and give it like any number and then we pass in those values into a vector compose in order to mix it with uh a vector operation where you pass in the step output and pass this inside the emission instead so you get like more brightness to the light and you get more glow of course you can change every parameter to your certain needs and make it more brighter whatever you prefer I hope that helps you and if you have still any questions left feel free to ask me anyway thanks for watching please like the video subscribe and share the video see you next time bye oh
Info
Channel: Foxid
Views: 3,357
Rating: undefined out of 5
Keywords: godot 4, godot, tutorial, shader, godot shaders, 3d, gamedev, dissolve shader, erosion shader, shaders
Id: TQ5ChFcFSXg
Channel Id: undefined
Length: 3min 35sec (215 seconds)
Published: Mon Nov 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.