I'm having a problem creating a shader in the strumpy shader editor. I want to create a shader that has a mask for the reflection and specular and also a fresnel falloff for the reflection. But when I create the shader it comes up with errors.
When I remove the cubemap and replace it with just a colour it works fine. Or I can replace the diffuse with just a colour and it will show the reflection and specular. I can also replace all the specular maps with the diffuse map and it works.
Is it even possible to create a shader that does this or is there something wrong with the code that strumpy makes?
picture of graph (The problem area is in blue)
picture of errors
Answer by laserchalk
Mar 24, 2012 at 02:56 PM
I solved the problem. I just used the alpha channel of the diffuse map for the specular level. It's a good technique to use if you just want a grey scale image.
Answer by RAGNAROK
Apr 15, 2012 at 05:04 PM
Any chance you could post an image with the final Shader? I'm trying to learn a bit about this and I could really use som examples.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Strumpy Shader working in editor but not in build.
2sided Shader - Strumpy Shader Editor
Strumpy Parallax Shader
Help Fixing Warnings in this Shader?
Strumpy shaders... Y U NO dynamic batch ??