6
2013
Fake Realtime Shadows With Surface Shader (v2.0)
New realtime dynamic super version of the “Fake Realtime Shadows With Surface Shader“!
Webplayer:
http://unitycoder.com/upload/demos/FakeShadowShaderUnity/
—
Image#2: Purpose was to make 2D shadow casting..but resolution is not good enough..

—
Image#3: Or actually DX11 (#pragma target 5.0) gives extra ‘power’:

Related Posts
6 Comments + Add Comment
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by













This is exactly what I need for my fog of war implementation. Can you post code for this.
Would this work with DX9 and about 20 vision sources to generate a visibility mask of at least 512×512 (1024×1024 would be best)?
this one is the same system, except the mask update, test it first:
http://unitycoder.com/upload/demos/mFakeShadowShader2/
I have seen that one but it’s not obvious if it would see through a hole in the object as I see in this one. The tree for example has a nice shadow based on the leaves and branches.
Also the shadows are much smoother in this example.
Any chance you could tell me how you did this or post the source?
2d Shadow casting (shader)
https://www.shadertoy.com/view/4dSXR1
2D light/shadows with a single point light (shader)
https://www.shadertoy.com/view/Xt2SDV
Dynamic Soft Shadows Based on Local Cubemaps
https://www.assetstore.unity3d.com/en/#!/content/61640