init 1.7.1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <http://unlicense.org/>
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ece8ea8d624ff347b8c8def987b32cc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Antoine Lelievre
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 21b9d22da73f097409619f83696114ea
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,61 @@
|
||||
KinoAqua
|
||||
========
|
||||
|
||||

|
||||

|
||||
|
||||
**KinoAqua** is a custom post-processing effect for Unity URP/HDRP that creates
|
||||
a watercolor effect. The shader implementation of the effect is inspired by
|
||||
[a Shadertoy effect] created by Florian Berger (flockaroo).
|
||||
|
||||
[a Shadertoy effect]: https://www.shadertoy.com/view/ltyGRV#
|
||||
|
||||
System Requirements
|
||||
-------------------
|
||||
|
||||
- Unity 2021.3 or later
|
||||
|
||||
Note that the shader hasn't been optimized enough for practical use. Although
|
||||
it's compatible with most of the platforms, it may run significantly slow on
|
||||
some devices like mobiles.
|
||||
|
||||
How to Install
|
||||
--------------
|
||||
|
||||
This package uses the [scoped registry] feature to resolve package
|
||||
dependencies. Open the Package Manager page in the Project Settings window and
|
||||
add the following entry to the Scoped Registries list:
|
||||
|
||||
- Name: `Keijiro`
|
||||
- URL: `https://registry.npmjs.com`
|
||||
- Scope: `jp.keijiro`
|
||||
|
||||

|
||||
|
||||
Now you can install the package from My Registries page in the Package Manager
|
||||
window.
|
||||
|
||||

|
||||
|
||||
[scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html
|
||||
|
||||
How to Use on URP
|
||||
-----------------
|
||||
|
||||
The effect is implemented as a renderer feature on URP. To use the effect, add
|
||||
the **Aqua Effect Feature** to the renderer feature list.
|
||||
|
||||
You also have to add the **Aqua Effect** component to camera objects. You can
|
||||
control the effect parameters via it, and the effect is only enabled within the
|
||||
attached camera objects.
|
||||
|
||||
[renderer feature]:
|
||||
https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/urp-renderer-feature.html
|
||||
|
||||
How to Use on HDRP
|
||||
------------------
|
||||
|
||||
The effect is implemented as a custom post-processing effect on HDRP. To use
|
||||
the effect, add `Kino.PostProcessing.Aqua` to the Custom Post Process Orders
|
||||
list in the HDRP Global Settings (you can find the entry in the "After Post
|
||||
Process" list box).
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d98e2bf3e8dead44392cf12ef4e6163f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,147 @@
|
||||
# HDRP-Custom-Passes
|
||||
A bunch of custom passes made for HDRP. This project have been setup for Unity 2021.1 version with HDRP 12.x.
|
||||
|
||||
## TIPS Effect:
|
||||
|
||||
Features:
|
||||
+ Edge detect
|
||||
+ Draw Mesh
|
||||
+ Compositing with fullscreen pass
|
||||
|
||||
Source file link for this effect: [TIPS.cs](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/TIPS/TIPS.cs) and [TIPS.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/TIPS/Resources/TIPS.shader)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 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](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/Blur/SlightBlur.cs) and [Blur.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/Blur/Resources/CompositeBlur.shader)
|
||||

|
||||
|
||||
## Outline Effect:
|
||||
|
||||
Source file link for this effect: [02_Selection_Objects.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/Selection/Shaders/02_Selection_Objects.shader) and [02_Selection_Fullscreen.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/Selection/Shaders/02_Selection_Fullscreen.shader)
|
||||
|
||||
Effect made without custom C#, setup in the inspector:
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## See Through Effect:
|
||||
|
||||
Source file link for this effect: [SeeThrough.cs](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/SeeThrough/SeeThrough.cs) and [SeeThroughStencil.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/SeeThrough/SeeThroughStencil.shader)
|
||||

|
||||
|
||||
|
||||
## AR Effect:
|
||||
|
||||
Features:
|
||||
+ Early depth pass
|
||||
+ Composite with video in background
|
||||
|
||||

|
||||
|
||||
## Glitch Effect:
|
||||
|
||||
Features:
|
||||
+ Display a "bad reception" effect over objects of specified layer, using the following shader:
|
||||

|
||||
|
||||

|
||||
|
||||
## Scrolling Formulas Effect:
|
||||
|
||||
Features:
|
||||
+ Uses a builtin fullscreen custom pass and a custom pass fullscreen shader
|
||||
+ Triplanar mapping
|
||||

|
||||
|
||||
## 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
|
||||

|
||||
|
||||
## Glass
|
||||
|
||||
Features:
|
||||
+ Thickness aproximation using a custom pass rendering backfaces in custom depth
|
||||

|
||||
|
||||
## Depth Capture
|
||||
|
||||
Features:
|
||||
+ Render objects from a different camera and output their depth in a depth buffer
|
||||

|
||||
|
||||
## 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)
|
||||
|
||||

|
||||
|
||||
And this is the same image without rendering the object to the normal buffer:
|
||||

|
||||
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:
|
||||

|
||||
|
||||
## ScreenSpace Camera UI Blur
|
||||
|
||||
This effect blurs the camera color buffer and renders the screenspace UI on top of it. It is intended to be used in the after post process injection point
|
||||

|
||||
|
||||
Note that this custom pass also avoid z test issues when doing this kind of as the transparent objects are rendered after everything.
|
||||
|
||||

|
||||
|
||||
|
||||
## Render Video Without TAA
|
||||
|
||||
This effect allows you to render an object (for example a video player) without TAA. It uses custom post processes to achieve this, so be sure to have the "VideoPlaybackWithoutTAAPostProcess" post process in your HDRP default settings:
|
||||
|
||||
.
|
||||
|
||||
As you can see in the videos, this pass will remove all artifacts visible when an object doesn't have valid motion vector data (which is the case for most texture animation or video playback):
|
||||
|
||||
With TAA:
|
||||
|
||||
https://user-images.githubusercontent.com/6877923/116881360-77e10300-ac23-11eb-8a19-f176d2364f11.mp4
|
||||
|
||||
Without TAA:
|
||||
|
||||
https://user-images.githubusercontent.com/6877923/116881366-78799980-ac23-11eb-97b0-5f8aa18f9b3c.mp4
|
||||
|
||||
By default in this effect, the `fixDepthBufferJittering` field is disabled because it's a very costly operation (re-render all the objects in the scene into an unjittered depth buffer) but it allows to get rid of all TAA artifacts remaining after you add this effect (mainly depth jittering).
|
||||
|
||||
Custom pass effect sources: [Assets/CustomPasses/Video Playback Without TAA](https://github.com/alelievr/HDRP-Custom-Passes/tree/master/Assets/CustomPasses/Video%20Playback%20Without%20TAA).
|
||||
|
||||
## Render Object Motion Vectors
|
||||
|
||||
Render the Object motion vectors (not camera motion vectors!) into a render texture
|
||||

|
||||
|
||||
Sources: [Assets/CustomPasses/RenderMotionVectors](https://github.com/alelievr/HDRP-Custom-Passes/tree/master/Assets/CustomPasses/RenderMotionVectors)
|
||||
|
||||
## Copy Buffer
|
||||
|
||||
Custom pass that can copy the following buffers to a render texture:
|
||||
- Color
|
||||
- Normal
|
||||
- Roughness
|
||||
- Depth
|
||||
- Motion Vectors
|
||||
|
||||

|
||||
|
||||
Source: [Assets/CustomPasses/CopyPass](https://github.com/alelievr/HDRP-Custom-Passes/tree/master/Assets/CustomPasses/CopyPass)
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3d18479cb1b9e644bac58ab2cbf4087
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user