- Home /
Mobile problems with reflective/vertexlit shader.
Has anyone had any success with the reflective/vertexlit shader on mobile? On both ios and android devices, setting the "Reflection Color" has zero effect and my reflection is always overblown. I'm unable to turn it down.
I've lost a couple of days now to trying to find (or create) a simple, fast shader that gives me a basic reflection using the cubemap and allowing me to adjust the stregth of the reflection while still using my base texture. I've come across a few shaders that give me the same, basic effect but nothing that doesn't bring mobile devices to their knees.
Anyone know of a fix for the above shader, or a mobile shader that does something similar?
by default '$$anonymous$$obile' group doesn't contain shader with reflect support. where do you found this shader? if this is an external one, show it's source.
Sorry. I had it right in the title, but not in the body. I was trying the reflective/vertexlit, not mobile/vertexlit. If there was such a beast I probably wouldn't be asking this question. :)
i'd check the shader 'Reflective/VertexLit' and found something interesting:
// First pass does reflection cubemap
and some lines below in the same pass:
#pragma exclude_renderers gles xbox360 ps3
it means don't compile shader for OpenGL ES 2.0, which used on mobile platforms.
so.... r u sure you see a reflection on mobile renderers? check it using high contrast reflection map like black&white checkers. also it is an answer why reflection color hasn't effect. overblow can be effect of specular of the same shader. make specular off and check reflection first.
Your answer
Follow this Question
Related Questions
Custom shader works in Unity but broken on ios/android 0 Answers
Glass material or shader for mobile? iOS Android 1 Answer
Specular bug on iOS/Android using Standard shader 2 Answers
reflective shader on android 0 Answers
Set default number/emails in a new text message/email sent via unity 0 Answers