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
- Game Loop Designer
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
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