All Projects → tuxalin → Water Shader

tuxalin / Water Shader

Licence: mit
Procedural water shader for general use.

Programming Languages

reflection
70 projects
procedural
45 projects

Projects that are alternatives of or similar to Water Shader

Standardgeometryshader
An example of a geometry shader with Unity's standard lighting model support.
Stars: ✭ 303 (+65.57%)
Mutual labels:  unity3d, shader, hlsl
Noiseshader
Noise shader library for Unity
Stars: ✭ 616 (+236.61%)
Mutual labels:  unity3d, shader, hlsl
Unity Shaders
✨ Shader demo - More than 300 examples
Stars: ✭ 198 (+8.2%)
Mutual labels:  unity3d, shader, hlsl
Nnao
Neural Network Ambien Occlusion based on http://theorangeduck.com/page/neural-network-ambient-occlusion
Stars: ✭ 57 (-68.85%)
Mutual labels:  unity3d, shader, hlsl
Computestochasticreflections
Compute Stochastic Screen Space Reflections for unity post processing
Stars: ✭ 163 (-10.93%)
Mutual labels:  unity3d, shader, hlsl
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-49.73%)
Mutual labels:  unity3d, shader, hlsl
Skeletalgeometriceffects
Experiments on geometry shader instancing with skeletal animations
Stars: ✭ 436 (+138.25%)
Mutual labels:  unity3d, shader, hlsl
Jl S Unity Blend Modes
👾 Collection of Unity shaders that support blend modes like photoshop layer style (Darken, Multiply, Linear Burn, etc)
Stars: ✭ 62 (-66.12%)
Mutual labels:  unity3d, shader, hlsl
Bloodfx
Procedural blood stain shader
Stars: ✭ 170 (-7.1%)
Mutual labels:  unity3d, shader, hlsl
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+6292.35%)
Mutual labels:  unity3d, shader, hlsl
Proccharvfx
Procedural character generation with Unity Shader Graph and VFX Graph
Stars: ✭ 114 (-37.7%)
Mutual labels:  unity3d, shader, hlsl
Shadergum
Unity3D GPU Sculpt & Morph
Stars: ✭ 125 (-31.69%)
Mutual labels:  unity3d, shader
Kinovision
Frame visualization utility for Unity
Stars: ✭ 177 (-3.28%)
Mutual labels:  unity3d, shader
Volumetriclinesunity
Source of the Volumetric Lines Asset from Unity's Asset Store
Stars: ✭ 125 (-31.69%)
Mutual labels:  unity3d, shader
Kinostreak
Anamorphic lens flare effect for Unity
Stars: ✭ 139 (-24.04%)
Mutual labels:  unity3d, shader
Lwrpshaders
A collection of high customizable unlit shaders for Lightweight Render Pipeline
Stars: ✭ 125 (-31.69%)
Mutual labels:  unity3d, shader
Unity Raymarching Framework
A framework to easy implement raymarching in unity. Include lots of hash,noise,fbm,SDF,rotate functions
Stars: ✭ 129 (-29.51%)
Mutual labels:  shader, hlsl
Kinotube
An image effect simulating analog video artifacts in Unity.
Stars: ✭ 142 (-22.4%)
Mutual labels:  unity3d, shader
Noiseball3
A Unity example that shows how to use the new implementation of DrawProcedural.
Stars: ✭ 147 (-19.67%)
Mutual labels:  unity3d, shader
Unity Texture Curve
✏️ Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
Stars: ✭ 149 (-18.58%)
Mutual labels:  unity3d, shader

Procedural Water

A procedural water shader, multi platforrm support(Unity, GLSL, HLSL), for a variety of water types.

water-main

Features

The water shader is designed for various water types: lakes, ocean and rivers.

Current implemented features are:

  • multiple maps(height, normal, shore, sky)
  • configurable refraction and reflection
  • colour extiction based water depth
  • mean sky radiance
  • displacement
  • enabling/disabling features
  • bicubic filtering
  • configurable shore foam
  • HLSL/GLSL/Unity support(for GLSL use the conversion script to SPIR-V)

Usage

The shader requires refraction and reflection maps of the scene, the refraction map also requires the depth. See the textures folder for examples of sky, shore, foam, height and normal maps.

Certain features can be switched off via the following defines:

  • USE_DISPLACEMENT, adds displacement of gerstner and sinve waves, with an additional height map
  • USE_MEAN_SKY_RADIANCE, adds mean sky radiance reflectance, requires a sky map
  • USE_FILTERING, enable/disable bicubic filtering
  • BLINN_PHONG, use simplified specular

Preview

video

water-prev1

Composition of the water(final, shore, refraction+depth colour, reflection + distortion, diffuse + ambient, normals): water-layers

water-settings

Future improvements

Planned improvements are:

  • caustics
  • underwater mode with light rays
  • cascading depth maps
  • improved water displacement/simulation(FFT)

Contributing

Based on:

Bug reports and pull requests are welcome on GitHub at https://github.com/tuxalin/water-shader.

License

The code is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].