- Home /
What Shader should I use for IOS?
Basically, I want to make a ship sink half way in the ocean in Unity3d. The main camera is looking at some perspective.
The ship is a 3D plane with material, straight up (i.e. perpendicular to the camera). The ship material has transparent parts. The ocean is also a 3D plane with material, with about 30 degree to the camera.
I am able to sink the ship half way in the ocean plane. and not showing the parts that submerged into the ocean plane in Unity Editor. I use mobile particle Alpha Blended for the ship.
however, when I load to the iPad or iPhone, it doesn't hide the part of the ship that should be under the water. I suspect I use the wrong shader for the ship. What shader should I use?
Sometimes a screenshot can describe things a lot better than words. But it sounds like you want to write to the depth mask to prevent water appearing in the boat: http://wiki.unity3d.com/index.php?title=Depth$$anonymous$$ask
Your answer
Follow this Question
Related Questions
fixed half float performance on iOS? 1 Answer
See through issue in iOs 0 Answers
Why does this IOS / OGLES shader not match PC version? 0 Answers
how to build impressive shaders for iOS? 1 Answer
3D outline shader problem in a plane 0 Answers