iPhone reflective Shader

I found that ReJ mentioned iPhone doesn’t support Cube Map. So, we can’t use Cube Map to reflection. Is there any way to show reflection of the Sky or environment objects? I want to use it on Water.

I’m thinking a way like:

  • take reflection texture from 3D tools
  • combine it with main texture

Target is to gain following effect:

http://forum.unity3d.com/viewtopic.php?t=19243&postdays=0&postorder=asc&start=0

–Eric

So, as far as I get [though it’s not much clear there. Sorry if I miss anything], they blend the water texture and the sky texture. Here the question come about the big stone reflection. I think they used it in the water texture.

Please correct me if I miss anything. Thanks.

They duplicate all the geometry, invert it in Y, and give it a blue material to “fake” the reflection.

Thanks aNTeNNa trEE [quite complex name ;)]. I’m confused about getting the glossiness.

Blue Water texture + RBG Sky can give sky on water. Is there anyway to get the glossiness?

Note: I’m new in ShaderLab, so please correct me if I’m wrong.

If by glossiness you mean reflection, there is none, it’s just a trick. No shaders, either, just somewhere around 50% alpha on the water plane probably, so you don’t do anything in shaderlab. See here for another example of the “flipped geometry” technique, with some discussion about it.

–Eric

Tons of Thanks to Eric !! I understand that I already got it perfect. But something is missing that is not make me happy. Here is a sample image. Inverted mesh is not perfect here. So, skip it please :). I got reflection but not gloss on it. Is there any point I’m missing? Thanks in advance.

127563--4773--$picture_2_187.png

It will look “glossy” once you get the geometry right :wink:

Thanks Tree :). I’m going to the inverted geometry on the right place. I will update it. Thanks again :).

Thanks all. It’s now perfect :).

Thanks again.