- Home /
No longer an issue.
How to add metallic and smoothness to a frag shader?
I have a dissolve shader that's implemented as a frag that I'd like to also have support metallic and smoothness. Anyone know how to do this in a frag? I tried adding a 2nd pass as a surf and setting it there, but that completely overwrites everything that was done in the frag. Is there a way to provide the output of the frag to the input of the surf?
Solved this by making a basic surface shader, then clicking on the generate code button to generate the frag shader code, then modified that generated shader.
Answer by McLoughlin753 · Sep 23, 2019 at 05:26 AM
I'm trying to add some Smoothness and Metallic to my custom shader in order to have dark texture for day/night cycle mybkexperience
Follow this Question
Related Questions
Why is my scrolling shader suddenly rendering as magenta? (May be related to fog) 1 Answer
Making shader not ignore Light on transparent areas ? 0 Answers
Unlit Transparent With Color Support 1 Answer
create a texture with shader code? ( without using a texture ) 1 Answer
How to add Emission to my custom shader? 2 Answers