- Home /
bumpcolorspec not working in unity3?
http://www.unifycommunity.com/wiki/index.php?title=BumpColorSpec
Has anyone gotten this shader to work? It seems to ignore the specular channel completely.
Answer by skovacs1 · Dec 13, 2010 at 05:46 PM
That is an old-style shader. When Unity upgraded it, it commented out the relevant parts, telling you to implement it as a surface shader. Check the comments on the shader which clearly state "#warning Upgrade NOTE: SubShader commented out; uses Unity 2.x per-pixel lighting. You should rewrite shader into a Surface Shader."
Unfortunately, because surface shaders don't give you the control to pass uv coordinates or specular color as a SurfaceOutput parameter, that becomes a lot harder than it sounds.
Thank you, I figured something along this line. I hope an experienced shader programmer can take a look at this soon. It will be difficult to hack this together with limited shader experience.
Thank you for the clarification.
Would using a surface shader work well with iOS devices? OpenGL ES 2.0? Would this shader perform well enough on these devices?
In other words, if re-written is this shader viable for iOS?
Surface shaders compile into all of the passes needed for your various platforms unless specified not to. They should work no worse than before as they should compile out the same in the end or better than they used to.
Answer by michaelvoigt · Dec 14, 2010 at 04:02 AM
I found it, this shader does the trick, I hacked together a faster version that performs quite well.:
http://forum.unity3d.com/threads/56035-Unity-3-Support-for-specular-textures
Your answer
Follow this Question
Related Questions
Custom Shader not working on Android Device 0 Answers
toonLighted shader to work with deferred rendered shadows 2 Answers
TransparentTerrain wiki shader problems 1 Answer
How can I create a custom import object? 5 Answers
Custom Meshes? 1 Answer