GithubHelp home page GithubHelp logo

moto2002 / hdrp-custom-passes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alelievr/hdrp-custom-passes

0.0 1.0 0.0 62.85 MB

A bunch of custom passes made for HDRP

License: MIT License

C# 52.89% ShaderLab 46.14% HLSL 0.97%

hdrp-custom-passes's Introduction

HDRP-Custom-Passes

A bunch of custom passes made for HDRP. This project have been setup for Unity 19.3 version with HDRP 7.4.1. It should be compatible with all 19.3 version of HDRP.

TIPS Effect:

Features:

  • Edge detect
  • Draw Mesh
  • Compositing with fullscreen pass

Source file link for this effect: TIPS.cs and TIPS.shader

TIPS_Effect TIPS_Effect_Size TIPS_Effect_Color

Slight Blur Effect:

Features:

  • 2 Pass gaussian blur and a downscale
  • Masking to not blur certain part of the screen using meshes

Source file link for this effect: SlightBlur.cs and Blur.shader SlightBlur

Outline Effect:

Source file link for this effect: 02_Selection_Objects.shader and 02_Selection_Fullscreen.shader

Effect made without custom C#, setup in the inspector: image

OutlineThickness OutlineColor2

See Through Effect:

Source file link for this effect: SeeThrough.cs and SeeThroughStencil.shader SeeThrough

AR Effect:

Features:

  • Early depth pass
  • Composite with video in background

AR

Glitch Effect:

Features:

  • Display a "bad reception" effect over objects of specified layer, using the following shader: SS_Glitch

Glitch

Scrolling Formulas Effect:

Features:

  • Uses a builtin fullscreen custom pass and a custom pass fullscreen shader
  • Triplanar mapping ScrollingFormulas

Liquid

Features:

  • Meta balls made by bluring normals
  • Visual Effect Graph inside a custom pass
  • Overriding depth and normals of a fullscreen transparent to emulate a surface Liquid

Glass

Features:

  • Thickness aproximation using a custom pass rendering backfaces in custom depth image

Depth Capture

Features:

  • Render objects from a different camera and output their depth in a depth buffer image

Render With Normal Buffer

Rendering objects in the normal buffer is essential to make objects work with screen space effects. This example show how to create a custom pass that renders an object in the depth, normal and color buffer so the SSAO can correctly be applied (you can see the exagerated SSAO effect in this screenshot)

image

And this is the same image without rendering the object to the normal buffer:
image As you can see the SSAO is completely messed-up

Note that because you need to render the object in both depth-prepass and forward pass, you need two custom passes volume with different injection points:
image

hdrp-custom-passes's People

Contributors

alelievr avatar remyunity avatar

Watchers

 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.