Home Unity

Water Refraction In Unity Free

Is it able to code a Water Refraction in Unity Free?
I just know the basic coding of Unity Shader. :poly122:

Replies

  • Farfarer
    No, it requires render textures.
  • Jonathan
    This is what you can do in Unity Free.

    In the shader, multiply a panning cloud texture of the texture coordinates used to sample the diffuse texture. If you linear interpolate between the diffuse UV coordinates and the diffuse UV coordinates slightly nudged, using the panning cloud texture as the linear interpolation value, you'll get the desired refraction effect. However, note, this kind of methodology will need to be applied to all objects rendered under the water (i.e.-any props, the ground, etc.).
Sign In or Register to comment.