|
I'm currently migrating a project from Unity iPhone 1.7 to Unity 3.1 and I'm having some issues with the shader below.
Every time I import the shader into Unity 3.1, Unity comments out the Blend command with this message. /* Upgrade NOTE: commented out, possibly part of old style per-pixel lighting: Blend AppSrcAdd AppDstAdd */ This is causing the shader to basically ignore the first SetTexture command and is only displaying the result of the second SetTexture command. Does anyone have any ideas on why this would be happening, or if this is just a bug I've stumbled across?
(comments are locked)
|
|
Blend AppSrcAdd AppDstAdd has been deprecated for Unity 3.0, but it's useless in your shader anyway. That blend mode was only used with multiple passes, so if it ever did anything, then that was a bug. All your shader does is multiply the spheremap by light, as you describe. Also, SeparateSpecular is useless on iOS. I'm making you an updated shader presently. Edit: Here's a shader. It's kind of a rough draft, in that I didn't really know where you wanted Double, Quad, etc., or how you wanted to influence the reflections with texture alpha. You should be able to modify it with your own multipliers as you like. Thanks Jessy! I couldn't find any Unity 3 specific information about the mobile shader pipeline in the docs. Is there any available?
Nov 23 '10 at 04:05 AM
Murcho
Not that I know of. I think all the iOS-specific ShaderLab stuff I know, I learned on my own, or by people telling me about issues here or on the forum. I've asked UT to include more iOS information in the docs, using the Bug Reporter app, but they haven't done it, as far as I know. :-(
Nov 23 '10 at 04:46 AM
Jessy
(comments are locked)
|
