- Home /
Shadergraph not working correctly
So I made a new project in the High Definition Render Pipeline and created a shader using Shader Graph and everything worked just fine. I noticed that something was wrong when I wanted to set the Preview Model to a custom model, and I got the console Error
NullReferenceException: Object reference not set to an instance of an object (The Error message was way longer, it also contained the shader graph script which caused the issue)
I also noticed that when I applied the Shader to my model, I could only see the albedo color and all the other stuff I did (mostly adding Noise and Fresnel to the Emission) wasn't visible.
So I guess the script that applies the shader in the Shader Graph Preview and the one that applies it onto the model are the same, and somethings wrong with it, but I can't quite figure out what. (Also, both my Render Pipeline and Shader Graph are up-to-date and I'm using Unity 2020.2.0a7.826)
Any help would be highly appreciated, thanks for taking your time :)
Your answer
Follow this Question
Related Questions
HDPR Sample Skybox 0 Answers
HDRP : ForwardAdd equivalent 0 Answers
Stencil buffer alternative in deferred shading 0 Answers
Emission shader doesn't "glow" 1 Answer
Getting a detailed procedural texture in Blender to look the same in Unity 2 Answers