Git Product home page Git Product logo

urpunderwatereffects's Introduction

URP Underwater Effects

An implementation of underwater effects that show under the water line.

Demo

Also

I'd love to see what you are using this for. If you submit an issue with a couple of screenshots or something I will try to make a section devoted to cool projects using this.

How to use

Download the latest release or download from the green code button. The difference is that the releases are the latest stable versions of the tool while downloading the source gives you the most updated version which is often buggy and experimental.

All effects are render features, so add the ones you want. The Horizon Line Feature needs to be the first one called. In order for the effects to be drawn under the water, set a layer on the object that you want to be the horizon line and use that layer in the horizon pass.

Thanks to Tom Weiland for ideas with the original concept. I just took it way too far lol.

Current Effects

  • Volumetric Light Rays
  • Caustics
  • Fog
  • Refraction
  • Blurred Water line
  • Color Changes With the Main Light and Ambient Color.

Note

If you have the game view resolution set too low, it is possible there might be a gap between the water and the effects. This is fixed if you just set low res off in the game view settings.

Other Effects

Bubbles are included as a particle prefab.

Known Issues

  • The fog doesn't draw transparent objects. (I would love help on this one if you know a solution)

Extenstion

If you wish to add more effects on top of the existing ones, you need to sample the _HorizonLineTexture. This lets you separate the waterline from the air above the water. I do this many times in the source so check there if you need help.

Cotributions

If you wish to contribute to this repo, feel free to make a pull request.

urpunderwatereffects's People

Contributors

end3r6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

urpunderwatereffects's Issues

Showcase!!

If you are using this for your game, I'd love to see it! :)

Post screenshots or videos here and I will make a section somewhere for all of the cool stuff.

Can't wait to see the awesomeness of your creations! :)

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.