C# Editable Gradient sky in the Shader Graph.
I am working on a DayNight cycle mechanic, and i wanted a custom gradient sky in the ShaderGraph. I created a couple different gradients using the "Sample Gradient" node, but then found out i cant reference them in script. My end goal is to have around a 7 or 8 level color gradient that i can edit/reference in a C# script. i totally understand if this is impossible.
Thank you in advance for your time, and have a wonderful day.
Answer by lgarczyn · Jan 17, 2020 at 01:28 AM
Unity has a Gradient class that can be edited in the inspector and referenced/sampled in script.
Thank you so much! I feel real stupid, I don't know why i didn't even think of that. But thank you!. Have a wonderful day.
Your answer
Follow this Question
Related Questions
Texture overlay in sphere? 0 Answers
How to know whether material's emission is enabled or not by C# script? 0 Answers
Material.SetFloat not updating. 0 Answers
blocks coloring like in game The Stack? 1 Answer
How to get wave height in specific point 0 Answers