Discover and read the best of Twitter Threads about #shadergraph

Most recents (3)

Hey all, wanted to share some info about how the shoreline shader is done. (This is a slightly simplified version).

(note : while it's based visually on the ACNH shoreline, it's probably not exactly the same way they are handling it) 😄

See thread!! 🌊🏝️ #unity3D #shadergraph
Firstly, the effect uses UVs, where the Y axis is towards the beach, and the X axis repeats around the island. Creating this was a manual process in Blender. Geometry with UV Y=1 appears as sand, and Y=0 as deeper water without the wave pattern.
For the ocean waves (lines) I'm using a Fraction node with the UV.y input to create a repeating pattern of lines, offset by time so they scroll and noise so they are wobbly.

Note the noise should be sampled using worldspace projected UVs so it tiles correctly (& has no seams).
Read 13 tweets
Been looking into custom lighting for Universal RP (v7.2.1+) & #shadergraph (see thread)

blogs.unity3d.com/2019/07/31/cus…

This article is pretty good, but the Unlit Master won't receive shadows - unless you also use the keywords :
MAIN_LIGHT_CALCULATE_SHADOWS
_MAIN_LIGHT_SHADOW_CASCADE Image
However, the Default value in the blackboard doesn't seem to work unless the keyword is exposed in the main graph.. (but that requires the _ON suffix which would change the keyword).

So to enable them, I'm using the Debug mode on the Material inspector to set them instead : Image
(Could probably also set them through a C# script using material.EnableKeyword)
Read 8 tweets
Saw a few others doing cloud shaders last week, so I might as well join in! Really happy with how this turned out. ☁️🌥️☁️ (See thread for #shadergraph + info) #unity3D #madewithunity #shaders
This is actually a fairly simple effect - It's a few Noise nodes with different scales & time offsets stacked onto each other, which are used to offset the Y vertex position of a plane. Also has a depth effect so it fades based on scene objects. Here's the #shadergraph
Note that there are some issues with this in the current LWRP version. In order to fix these I had to edit the code generated by the Master node - (right click the Master node and Show Generated Code. Then copy the file from the Temp folder into your Assets)
Read 8 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!