All Projects → StefanJo3107 → 2d Water Shader

StefanJo3107 / 2d Water Shader

Licence: mit
2D Water Shader made in HLSL in Unity based on water effect from the game Kingdom

Labels

Projects that are alternatives of or similar to 2d Water Shader

Photosynthesizer
Unity plugin to procedurally sprout foliage throughout your scene.
Stars: ✭ 85 (-32.54%)
Mutual labels:  shaderlab
Sigexam
Correction of a Shader Exam
Stars: ✭ 94 (-25.4%)
Mutual labels:  shaderlab
Optically Realistic Water
A Unity port of Martins Upitis' fantastic ocean water shader, which was originally coded in GLSL for Blender.
Stars: ✭ 111 (-11.9%)
Mutual labels:  shaderlab
Shadergraph examplelibrary
A library of Shaders created using Unity's Shader Graph.
Stars: ✭ 1,273 (+910.32%)
Mutual labels:  shaderlab
Darkandstormy
Overcast clouds with crazy colors skybox shader for Unity3d
Stars: ✭ 93 (-26.19%)
Mutual labels:  shaderlab
Smo Shaders
A collection of shaders to replicate those used in Super Mario Odyssey's Snapshot Mode.
Stars: ✭ 97 (-23.02%)
Mutual labels:  shaderlab
Temporalreprojectionexample
Temporal reprojection example for Unity
Stars: ✭ 82 (-34.92%)
Mutual labels:  shaderlab
Unity fps
Project and asset files for FPS Unity game.
Stars: ✭ 117 (-7.14%)
Mutual labels:  shaderlab
Dq Skinning For Unity
Stars: ✭ 93 (-26.19%)
Mutual labels:  shaderlab
Arcadevehiclephysics
A framework for creating an arcade inspired physics system for vehicles in Unity
Stars: ✭ 103 (-18.25%)
Mutual labels:  shaderlab
Iridescence
Iridescence shader
Stars: ✭ 89 (-29.37%)
Mutual labels:  shaderlab
Unity Basic Shader
Unity Basic Shader
Stars: ✭ 93 (-26.19%)
Mutual labels:  shaderlab
Unitytoonshader
👾 Toon shader for Unity.
Stars: ✭ 99 (-21.43%)
Mutual labels:  shaderlab
Unityvertexcolors
Stars: ✭ 86 (-31.75%)
Mutual labels:  shaderlab
Raymarchinginhdrp
Stars: ✭ 112 (-11.11%)
Mutual labels:  shaderlab
Jetdogs Prefabs
Prefabs for vrchat to help creators ranging from beginners to more experienced users.
Stars: ✭ 83 (-34.13%)
Mutual labels:  shaderlab
Unitypixelartcamera
Easy pixel art camera rendering in Unity
Stars: ✭ 95 (-24.6%)
Mutual labels:  shaderlab
Lwrpshaders
A collection of high customizable unlit shaders for Lightweight Render Pipeline
Stars: ✭ 125 (-0.79%)
Mutual labels:  shaderlab
Otto
Otto sample project for the AI Planner
Stars: ✭ 113 (-10.32%)
Mutual labels:  shaderlab
Normal Mapping For A Triplanar Shader
Example shaders showing different methods of implementing normal mapping for triplanar shaders.
Stars: ✭ 101 (-19.84%)
Mutual labels:  shaderlab

2D-Water-Shader

2D Water Shader made in HLSL in Unity based on water effect from the game Kingdom!

ko-fi

First off you'll need to create a render texture! Set it's size to some multiple of your screen resolution. For example width can be 1920×3.75=512 and height will then be 1080×3.75=288.

After that create a new camera and as the Target Texture assign previously created render texture. You should now have two cameras in the scene.

For the final step create new 3D plane and create material for it which will be using Custom/WaterShader as its shader.

Variables Description:

  • Texture: Your render texture
  • Displacement Texture: Your primary displacement texture for the water, you can find example texture in the Textures folder
  • Displacement Speed: How fast will your displacement texture scroll
  • Displacement Detail Texture: Secondary displacement texture for the water which should add more details to your water, you can find example texture in the Textures folder
  • Displacement Detail Speed: How fast will your displacement detail texture scroll
  • Displacement Amount Divider: How much effect will your displacement texture have, the lower the value, the more effect it has
  • Foam Threshold: Threshold used for displaying foam, the lower the value, the more foam there will be
  • Edge Foam Threshold: Threshold used for displaying edge foam, the lower the value, the more edge foam there will be
  • Foam Alpha: Alpha color value of the foam
  • Parallax Divider: How much parallax effect will there be on camera movement, the lower the value, the more effect it has
  • Perspective correction: Do you want your water to be slightly rotated and have correct perspection
  • Vertex Displacement: Toggle this if you want to slightly displace your plane
  • Vertex Displacement Texture: Texture for your vertex displacement, perlin noise texture can be found in the Textures folder
  • Vertex Displacement Amount Divider: How much vertex displacement will there be, the lower the value, the more effect it has
  • Vertex Displacement Speed Divider: How frequently should vertex displacement change, the lower the value, the more frequent it is

You are free to use this shader on all of your projects, commercial or non-commercial, you don't have to credit me anywhere, even though that would be nice.

Contact:

Background sprites by Craftpix: https://craftpix.net/freebies/free-horizontal-2d-game-backgrounds/

Example 01

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].