Coder Social home page Coder Social logo

unityhdrpsimplewater's Introduction

UnityHDRPSimpleWater

Simple water shader prepared with ShaderGraph in Unity 2018.3.6. Has still a lot more work to be done but still might be of use to someone so here it is :) Not likely to get updated frequently but will be updated eventually.

Demonstration Video: https://youtu.be/rvMm2hA8FtM

Update 3

Added a working scene file with an example

Update 2

Added wave controls and Edge foam settings.

Update

Added waving and a crude way of edge foam. Will improve but still should be useful enough :)

How to

Just drag 1 or 2 normal maps to the textures and have fun with the settings :)

Settings(Skipping obvious ones like the main color):

Top Color: The outside color of the fresnel effect.

Speed: Sets the speed of blending. Can get jiggy on high speeds.

AngleDim: Sets the power of the fresnel effect (The color changes depending on your angle of view)

Smooth: Specular smooth.

A lot of wave settings (Just tinker with them and you'll see)

Edge Alpha: Adds the alpha from this texture to the foam. Can be used to add some form of simple variance

Clamp Edge Brightness: You will need to adjust this especially if you have bloom enabled.

Edge Offset: How long is the foam?

To-do

-Preventing "intersection repeats". You'll notice probably after tweaking it some time.

water.png

unityhdrpsimplewater's People

Contributors

flamacore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.