Unity Tutorial - Make a STAR in Shader Graph

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's up coders i'm kaderius and today a quick video on how to create a star using shader graph before we start take a moment to like and subscribe and i see you in unity let's start by creating a standard 3d project we could start a urp project but i don't like the default scene [Music] once the project is created go to the package manager and add the universal rp package [Music] then we must create the urp pipeline assets and assign the asset in the project settings onto graphics we must also enable the post processing on the camera and delete the directional light as we want to need it [Music] in this project i used the free asset real style skybox lite as background you can download it for free on the asset store and include it in the project if the lighting window is not open go in the window menu under rendering and click lighting then in the lighting window in the submenu environment we can add the real star skybox ok we can now add a sphere and create the shader graph right click on the shader graph create a material from it and assign it to the sphere alright double click on the shader graph to start editing we need the base color for star enable hdr and choose nice orange like our sun or any other color stars have cells on their surface that we can simulate with the voronoi noise map we can add a float to control the density of the cells and link it to the density input of the voronoi node stars create solar flares and we can do the same from the voronoi node we connect a power node and a float variable to control the strength of the solar flares next we add a color to our cells that we connect to the rest of the chain with the multiply node at the end we can add the chain to the base color and reconnect to the emission input [Music] save the asset and let's have a look in the scene view it's not yet so shiny because we don't have any post-processing effect let's add the global volume and create a global volume profile we will use the bloom effect to light up our star a threshold of 0.5 and intensity of 1.5 should already produce cool results i mentioned solar flares but so far we don't see any and that's because our cells are static so let's go back to our shader graph let's add a time node and multiply it with value to control the speed of our cells we connect it to the angle offset of a voronoi node we can also add a radial share for more distortion and connect it to the uv of the voronoi [Music] alright let's go back to the scene mode and have some fun it's really up to you what kind of star you wanted to create we can change the values turn the star in blue to have a white dwarf increase the solar flares to simulate many explosions or increase the bloom intensity to make a [Music] supernova all right it's already the end of the video i hope you liked it if that's the case thank you very much for giving a thumbs up and why not subscribing to the channel you probably realize that the base of the shader is quite similar to cotton water shaders like the one made by brackis so i thought it would be normal to give him credit for that in the next video we will use this style to create a solar system with orbiting objects using real physics thank you very much for watching keep coding and see you next time you
Info
Channel: Coderious
Views: 17,880
Rating: undefined out of 5
Keywords: unity, c#, tutorial, programming, shader, shader graph, video games, star, madewithunity, made with unity, computer, coderious
Id: ykwvCCqdcCs
Channel Id: undefined
Length: 4min 42sec (282 seconds)
Published: Wed Jun 16 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.