Optically Realistic Water 逼真的水 

2019-09-03 15:56 发布

Unity3d插件/模型 /[着色/阴影]
90 0 0
本帖最后由 虎哥 于 2019-9-3 15:57 编辑

插件名称:Optically Realistic Water插件官网:访问官网
版权协议:Red pine1.1解压密码:通用密码
Optically Realistic Water
47149964-7a570800-d318-11e8-9420-74cf4619b35e.jpg
Contents
The shader actually consists of two parts:
WaterSurface.shader
WaterUnder.shader
WaterSurface.shader is intended to be used with the water plane and renders reflections, subsurface scattering, etc.

WaterUnder.shader must be applied to any renderers which could potentially be submerged in the water (such as the terrain, etc.).

Water.cs should be attached to the water plane and handles planar reflections and all shader parameters. It is mostly self-explanatory if you are at all familiar with Unity's existing water shader.
Just like in Martins' project, you can click and drag the sun into any position you like.

Features
Reflection with accurate fresnel reflectance model
Refraction with chromatic aberration
Projected caustics on geometry from the water surface based on normals
Seamless transition to underwater (no post effects used)
Accurate water volume with light scattering
View and light ray color extinction based on water color and sunlight
Additional features/changes
Refraction is masked based on depth to prevent foreground distortion artefacts
Normal map intensity fades out with distance to prevent excessive distortion artefacts
Clip plane offset depends on camera distance from water plane, which reduces artefacts when close to surface
Some shader calculations moved into scripts (sun colour, for example)
Some optimisations (much more could be done here)
Removed/unported features
Simple coastline detection (I didn't want this shader to rely on baked shoreline maps)
"Caustic fringe" effect
Above/below water transition droplet post effect
Underwater distortion (it's not a real physical phenomenon so I chose to remove it)
"Glitter" post effect
Limitations
Due to the required underwater shader, you may find it very difficult to adapt this to an existing project and thus it should be considered more of a prototype or proof of concept. This is also a limitation of Martins' original shader.

The shader uses forward rendering and has not been tested in deferred.

游客,如果您要查看本帖隐藏内容请回复


严禁广告
B Color Smilies

你可能喜欢

Abandoned Railway Station 1.0.1 废弃火车

Unity3d插件/模型

418 6 0

拖拉机 2018-09-13

Unique Projectiles Volume 1 1.2 法术子弹

Unity3d插件/模型

555 20 0

发财 2019-02-17

CubeBrush - BK - HD Rocks & Stones PBR岩

Unity3d插件/模型

891 9 0

虎哥 2018-07-16
关闭

站长推荐上一条 /1 下一条

快速回复 返回顶部 返回列表