Giter VIP home page Giter VIP logo

unity-screenspacereflections-urp's Introduction

Unity-ScreenSpaceReflections-URP

SSR solution for Unity URP. Supports Linear Tracing and Hi Z tracing. The package includes SSR render feature and Hierarchical Min-Z Depth Buffer render feature.

Donation to help me out Click Here

Images enter image description here enter image description here enter image description here Requirements:

  • Unity URP 12 or newer

  • Unity 2021 LTS or newer

Does not support VR. Installation Instructions:

  1. Copy: "https://github.com/JoshuaLim007/Unity-ScreenSpaceReflections-URP.git"
  2. Go into the package manager in unity
  3. Select "add package from git url"
  4. Paste the link into the text entry
  5. Press "add"

In your URP Asset SSR ScreenShot 1

Tracing Modes

  • Linear Tracing
  • Hi-Z Tracing

enter image description here Hi Z tracing requires "Depth Pyramid" render feature to be added in the pipeline asset. The Depth Pyramid is included in this package.

API: enter image description here

Changing settings during runtime

void LimSSR.SetSettings(ScreenSpaceReflectionsSettings o)
  • o.StepStrideLength = The length of each ray march stride. Increasing this will reduce image quality but allow for further objects to be visible in the reflections.
  • o.MaxSteps = The number of steps the shader does before ending the ray march. Increasing this will allow further objects to be visible in the reflections but reduce performance.
  • o.Downsample = The number of times the working resolution is downscaled. Increasing this will reduce image quality but increase performance.
  • o.MinSmoothness = The minimum smoothness of a material has to be in order to have reflections.

For the best quality, try to minimize StepStrideLength and maximize MaxSteps

bool LimSSR.Enabled
  • True: Enables effect
  • False: Disables effect

Enables or disables the SSR shader

static RaytraceModes TracingMode

Sets the tracing mode: Linear tracing, or Hi Z tracing

unity-screenspacereflections-urp's People

Contributors

joshualim007 avatar milk-drinker01 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.