Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by dbrizov · May 04, 2018 at 04:20 PM · shadergraph

ShaderGraph always results in pink (broken) shader

Hi guys. Just downloaded the latest version of Unity and the Shader Graph is totally broken. No matter what I do, even if I leave everything to the default, it just results in a pink (broken) shader. alt text

pink.png (29.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
9
Best Answer

Answer by Remy_Unity · May 04, 2018 at 04:28 PM

Are you using the LightWeight Render Pipeline too ?

Shadergraph is ment to work only with this for the moment. It is stated in this blog post : https://blogs.unity3d.com/2018/02/27/introduction-to-shader-graph-build-your-shaders-with-a-visual-editor/

Shader Graph is designed to work with another Unity 2018.1 feature: Scriptable Render Pipeline (SRP). Therefore, you can’t use it with the Built-In Unity Renderer. It will come with support for:
- The High-Definition Render Pipeline
- The Lightweight Render Pipeline.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dbrizov · May 04, 2018 at 04:48 PM 0
Share

I've installed the render-pipelines.core, render-pipelines.lightweight and ShaderGraph packages. Do I need to tell the editor to use the new render pipeline, and where I can do that?

alt text

package-manager.png (17.5 kB)
avatar image dbrizov · May 04, 2018 at 04:57 PM 2
Share

Ok, I found it. I had to create LightweightPipelineAsset and link it in the Graphics settings. Thank you very much mate, you actually helped me :)

avatar image jj_unity328 dbrizov · Jun 28, 2018 at 07:24 AM 0
Share

Everything else in my scene turned pink when I did that. :)

avatar image
16

Answer by dustin_pau1 · Jun 03, 2018 at 01:43 AM

For any others, youll need to make sure you have the Lightweight render pipeline package installed. You can check by going to Window>PackageManager. If you dont already have it installed, you can install it in the "All" tab. Next, create a new LightweightAsset in the asset folder by Create>Rendering>LightweightAsset. Then go to Edit>ProjectSettings>GraphicsSettings and place that LightweightAsset in the Scriptable Render Pipeline Settings. After that I closed and re-opened the Shader Graph editor window and it was solved.

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TGR-GBT · Jun 05, 2018 at 12:12 PM 0
Share

I needed both of your answer. Works like a charm now!

Thanks

avatar image KarlKarl2000 · Jun 08, 2018 at 11:18 PM 0
Share

Thanks for this. Really useful

avatar image applesthepi · Jun 18, 2018 at 01:52 AM 0
Share

after i did this, it worked for the shader graph, but every other texture is now that pink color!?!? Unity version: 2018.1.4f1 alt text

here are my packages: I added the hd render pipeline hoping that would fix it alt text

avatar image dustin_pau1 applesthepi · Jun 19, 2018 at 02:45 AM 0
Share

Try changing the shader to the Standard shader on the pink objects and only use the lightweight shader for objects shaded with the shader graph.

avatar image FlamperDM applesthepi · Jul 07, 2018 at 02:26 AM 0
Share

$$anonymous$$aybe it is because those materials are not using Shader Graph. If that is the case you have two options.

1) Choose a material and change the shader for "LightweightPipeline/Standard (Physically Based)".

2) Go to Edit>Render Pipeline>Upgrade Project $$anonymous$$aterials to LightWeight $$anonymous$$aterials.

That works for me.

SOLUTION 1 example alt text SOLUTION 2 example alt text

avatar image applesthepi FlamperDM · Jul 08, 2018 at 12:38 AM 0
Share

Some of the materials need the fast leaves shader in nature, same with other materials. But the main materials that just go directly on an object do work properly when i change them to what you said

avatar image Harry_Drew applesthepi · Aug 13, 2018 at 10:14 AM 0
Share

Thank you for your help i have been looking for a fix for hours :)

avatar image $$anonymous$$ · Sep 06, 2018 at 06:24 AM 0
Share

Thanks. Really useful.

avatar image
1

Answer by Xerges · Jul 17, 2018 at 08:37 PM

is there any chance to use Shadergraph in a regular 3D project? ? please...

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Remy_Unity · Jul 18, 2018 at 08:06 AM 0
Share

This is not planned and Shadergraph will support the new render pipelines. If you need a nodal shader editor for the Built-In pipeline, you can either use solutions in the asset store (Amplify Shader Editor for example), or if your confident enough, write your own ShaderGraph master node that outputs compatible shader for Built-In.

avatar image Xerges Remy_Unity · Oct 15, 2018 at 11:54 AM 0
Share

Then there shouldn't be an option to create a project with the old regular 3D. Unity should now on only give you the option of LW SRP or HD SRP, but don't keep the old 3D without SRP if it's not going to be incompatible with all the tools, it's a bad design choice.

avatar image
0

Answer by Nazarovas · Sep 25, 2018 at 02:58 AM

when starting a new project select Lightweight RP template, in project there are an example assets, do not delete the settings folder and it worked for me even with the 2018.2 ver. hope this works for you to...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by kayb14 · Oct 13, 2018 at 03:10 AM

I have a totally diffrent solution for this, that works perfect for me. Unity could allready reproduce this bug and claim they fixed it but they didn't. Obviously.

Causing this problem, in my case, is any exposed property that is not set to 0. Doesn`t matter if color, floats, ints, sliders, vectors, textures anything that is not the predefined default setting will cause compile errors, if the property is eposed.

So I am now developing my shader without any exposed properties, and set it all back to zero, before exposing them. This is a shame, becuase one can't have any default values, that are logical to the shader.

anyway hope this helps!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JonPQ · May 18, 2020 at 05:56 PM 0
Share

Thanks ! appreciated

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

144 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to implement tessellation in a shader graph 1 Answer

Object velocity affect vertex position in shader graph?? 0 Answers

Shader Graph Matrix4x4 Convert to Property 0 Answers

Shader Graph transparency issue 0 Answers

How do I disconnect nodes in the Shader Graph? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges