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
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
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