All Projects → CustomPhase → Cp_sssss

CustomPhase / Cp_sssss

Naive screen-space subsurface scattering solution for Unity 5.

Projects that are alternatives of or similar to Cp sssss

Unity Dithered Transparency Shader
Unity material and shader for applying clipped, dithered transparency
Stars: ✭ 174 (+46.22%)
Mutual labels:  unity, rendering
Scriptablerenderpipeline
Scriptable Render Pipeline
Stars: ✭ 2,639 (+2117.65%)
Mutual labels:  unity, rendering
Ssrt
Real-time indirect diffuse illuminaton using screen-space information for Unity.
Stars: ✭ 176 (+47.9%)
Mutual labels:  unity, rendering
Lwrpambientocclusion
Post-Processing Stack v2 Ambient Occlusion works on Lightweight Render Pipeline
Stars: ✭ 179 (+50.42%)
Mutual labels:  unity, rendering
Shadergraph
Unity ShaderGraph project
Stars: ✭ 1,009 (+747.9%)
Mutual labels:  unity, rendering
Customsrp
Many mini-custom-SRPs showing how to achieve different things when creating your own SRP. Only SRP Core package is needed.
Stars: ✭ 132 (+10.92%)
Mutual labels:  unity, custom
Alloy
Alloy physical shader framework for Unity.
Stars: ✭ 244 (+105.04%)
Mutual labels:  unity, skin
Herebedragons
A basic 3D scene implemented with various engines, frameworks or APIs.
Stars: ✭ 1,616 (+1257.98%)
Mutual labels:  unity, rendering
Fontainebleaudemo
Fontainebleau demo
Stars: ✭ 524 (+340.34%)
Mutual labels:  unity, rendering
Unitydarkskin
Switcher of UI theme in Unity Editor (light -> dark) (.NET, WPF)
Stars: ✭ 466 (+291.6%)
Mutual labels:  unity, skin
Nativerenderingplugin
C++ Rendering Plugin example for Unity
Stars: ✭ 299 (+151.26%)
Mutual labels:  unity, rendering
X Postprocessing Library
Unity Post Processing Stack Library | Unity引擎的高品质后处理库
Stars: ✭ 1,079 (+806.72%)
Mutual labels:  unity, rendering
Creature unity
2D Skeletal Animation Unity Runtimes for Creature
Stars: ✭ 50 (-57.98%)
Mutual labels:  unity, skin
Pbr proj
Shader of PBR for Unity
Stars: ✭ 68 (-42.86%)
Mutual labels:  unity, rendering
Unitydecompiled
Now unnecessary, use the official code instead: https://github.com/Unity-Technologies/UnityCsReference
Stars: ✭ 1,486 (+1148.74%)
Mutual labels:  unity
Geomapping With Unity Mapbox
Geomap is the virtualization of data that maps a Country. Mapbox Unity SDK gives data(Global map layers of Streets, Buildings, Elev, and Satellite) generating custom 3D worlds for Mobile VR/AR apps.
Stars: ✭ 118 (-0.84%)
Mutual labels:  unity
Ma textureatlasser
Texture atlas creator for Unity
Stars: ✭ 116 (-2.52%)
Mutual labels:  unity
Unity3d Globe
Unity3D Implementation of Chrome Experiment WebGL Globe
Stars: ✭ 115 (-3.36%)
Mutual labels:  unity
Polygon Wind
Wind shader for low poly assets in Unity.
Stars: ✭ 119 (+0%)
Mutual labels:  unity
Invisible Highway
Invisible Highway is an experiment in controlling physical things in the real world by drawing in AR. Simply make a pathway along the floor on your phone and the robot car will follow that path on the actual floor in your room. A custom highway with scenery is generated along the path to make the robots a little more scenic on your phone screen.
Stars: ✭ 118 (-0.84%)
Mutual labels:  unity

Custom Phase Screen-Space Subsurface Scattering

Naive screen-space subsurface scattering solution for Unity 5.

In action
Animated gif: http://imgur.com/Nc8VyDv

Tested only in Unity 5.4.2, works with deferred/forward, gamma/linear, HDR/LDR, DX11/DX9, perspective/ortho.

How to use:

  1. Put the files into any folder in your .../Assets/Resources folder
  2. Attach the CP_SSSSS_Main script to your main camera
  3. Attach CP_SSSSS_Object script to any Renderer object that you want to have subsurface scattering on

Basic idea behind algorithm:

  1. Blur the source image separably, based on the distance from the camera, and attenuate surrounding sample's influence based on the depth difference between this sample and the center sample (Soft Depth Bias parameter controls the maximum depth difference allowed)
  2. Render the scene with replaced shader, using the mask set in CP_SSSSS_Object script multiplied by the subsurface color
  3. Composite the blurred stuff on top of the original, multiplying it by mask from step 2, and substracting the original based on the Affect Direct parameter

MIT License

Copyright (c) 2016 Evgeny Erzutov

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].