All Projects → nomand → Revealshader

nomand / Revealshader

Licence: mit
Unity Shader experiment

Projects that are alternatives of or similar to Revealshader

Unity Script Collection
A maintained collection of useful & free unity scripts / library's / plugins and extensions
Stars: ✭ 3,640 (+7644.68%)
Mutual labels:  unity3d, unity-editor, unity-scripts, shaders, shader
Nvjob Water Shader Simple And Fast
#NVJOB Simple Water Shaders. Free Unity Asset.
Stars: ✭ 172 (+265.96%)
Mutual labels:  unity3d, unity-scripts, shaders, shader
Unitylibrary
📚 Library of all kind of scripts, snippets & shaders for Unity
Stars: ✭ 1,968 (+4087.23%)
Mutual labels:  unity3d, unity-scripts, shaders, shader
Unitynativescripting
Unity Scripting in C++
Stars: ✭ 844 (+1695.74%)
Mutual labels:  unity3d, unity-editor, unity-scripts
Radialprogressbar
Customizable radial progress bar shader for Unity3D. Allows you to set arc range, minimum and maximum colors, textures, radius, and a few more things. Create HP Bars, Speedometers, rank progress, etc!
Stars: ✭ 714 (+1419.15%)
Mutual labels:  unity3d, shaders, shader
Unity Texture Curve
✏️ Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
Stars: ✭ 149 (+217.02%)
Mutual labels:  unity3d, shaders, shader
Unity Shaders
✨ Shader demo - More than 300 examples
Stars: ✭ 198 (+321.28%)
Mutual labels:  unity3d, shaders, shader
nvjob-sky-shader-simple-and-fast
#NVJOB Dynamic Sky. Sky Shaders. Free Unity Asset.
Stars: ✭ 103 (+119.15%)
Mutual labels:  shaders, shader, unity-scripts
Hologramshader
✏️ Test of an hologram material made in Unity.
Stars: ✭ 684 (+1355.32%)
Mutual labels:  unity3d, shaders, shader
Actors.unity
🚀Actors is a framework empowering developers to make better games faster on Unity.
Stars: ✭ 437 (+829.79%)
Mutual labels:  unity3d, unity-editor, unity-scripts
Spheredissolve
Customizable procedural spherical dissolve shader for Unity3D, for all your customizable procedural spherical dissolve needs!
Stars: ✭ 311 (+561.7%)
Mutual labels:  unity3d, shaders, shader
Unity Assetpipeline Presentation
Unity project for "A Technical Deep-Dive into Unity's Asset Pipeline" presented at Develop: 2018
Stars: ✭ 31 (-34.04%)
Mutual labels:  unity3d, unity-editor, unity-scripts
Missingreferencesunity
A Unity editor extension for finding missing object references
Stars: ✭ 146 (+210.64%)
Mutual labels:  unity3d, unity-editor, unity-scripts
Shadergum
Unity3D GPU Sculpt & Morph
Stars: ✭ 125 (+165.96%)
Mutual labels:  unity3d, shaders, shader
Rimlight
Customizable rimlight shader for Unity that includes pulsation and noise scrolling. Give your scenes that extra oomph!
Stars: ✭ 170 (+261.7%)
Mutual labels:  unity3d, shaders, shader
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+24789.36%)
Mutual labels:  unity3d, shaders, shader
Shadergraph Custom Nodes
🔨 Collection of custom nodes for ShaderGraph.
Stars: ✭ 53 (+12.77%)
Mutual labels:  unity3d, shaders, shader
Awesome Unity Open Source On Github
A categorized collection of awesome Unity open source on GitHub (800+)
Stars: ✭ 1,124 (+2291.49%)
Mutual labels:  unity3d, unity-editor, unity-scripts
Unity Shadergraph Sandbox
✏️ Collection of ShaderGraph examples for Unity.
Stars: ✭ 525 (+1017.02%)
Mutual labels:  unity3d, shaders, shader
Unity Frosted Glass
❄️ Test of a frosted glass material in Unity.
Stars: ✭ 506 (+976.6%)
Mutual labels:  unity3d, shaders, shader

Reveal Shader

This is a set of shaders for Unity3D. It maps worldspace position of a gameObject and draws to a RenderTexture in relation to world bounds and remaps it back onto the world as a mask, allowing for various shader effects.

Features:

  • Black and White to RGB texture reveal shader
  • Transparent to Opaque RGB Texture reveal shader
  • Displacement Tesselation shader
  • Auto and Manual world bounds lookup
  • Fading over time
  • Adaptive RenderTexture aspect ratio
  • Custom inpspector

The RenderTexture mask generation and re-projection happens separately from the surface shaders, so any combination of them is possible and adding new shaders is trivial without affecting the setup.

Download

Download the UnityPackage from Releases to get a clean import.

License

All code licensed under MIT License. Refer to License.md for full terms. Pull requests welcome.

Usage

Effects rely on object materials having a shader property "_Splat" to assign the RenderTexture and offset parameters. Objects without a compatible shader will be skipped. Use Runningtap/Reveal/B&W2RGB or .../A2RGB shaders on paintable objects.

Add Painter.cs to the scene.

Pick Lookup Mode.

  • Auto will iterate through all the world objects to calculate bounds. Use this for quick preview.
  • Manual will enable a box collider to set bounds manually. Use this for builds and complex scenes. BoxCollider will be turned off on start to disable physics.

Pick SplatMap Resolution

  • 32x - 2048x, more resolutions can be added in the Resolution enum.

Use Relative enables non-power of two resolution for the RenderTexture, based on world bounds to avoid overly stretched mask pixels. This will be calculated automatically, keeping the longest edge to selected resolution.

Fade Over Time allows for non-permanent mask drawing - stroke fades from oldest pixel. Fade Speed will be available if selected.

Add a parent gameObject containing all the paintable objects to World

Make sure RevealRTX is plugged into the Render Texture Shader.

Brush is a gameObject that will 'draw' the mask onto RenderTexture. Only XZ coordinates are considered.

Brush Size will change the size of the area drawn onto the RenderTexture.

Brush Strength determines stroke opacity.

Splat Map Preview will display current RenderTexture resolution and texture in play mode.

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].