3
2025
Create Baked DropShadow for UI images
Needed better shadow for UI image/button, and outline component was not enough..This editor script generates separate texture for selected ui image.With live preview in the tool window, to play with shadow settings. https://github.com/unitycoder/UIEffectsBaker
16
2014
2D Fog Of War
Got some nice looking Fog of War system working with sprites (2D)! It might eventually work on mobiles too (although at lower resolution..) *Will be posting it to asset store hopefully within this month.. ** Update 2022: Now after those “few months”, project sources are […]
12
2014
2D Visibility / Shadow
Started converting this 2D visibility/light script ( http://ncase.me/sight-and-light/ ) to unity, finally some progress! btw. lines are drawn using GLDebug from : http://www.unity3d-france.com/unity/phpBB3/viewtopic.php?f=24&t=5409 Unity forum thread: http://forum.unity3d.com/threads/2d-visibility-shadow-free.275698/ — TODO: – Quad segments are currently crossed.. – Fix mesh generation *Temporary fix: insert extra boxes outside […]
15
2014
Unity indie: Soft Shadows (Directional Light)
Using Unity Indie, modified directional hard light shadows. Forum thread: – http://forum.unity3d.com/threads/free-directional-light-soft-shadow-unity-indie.257432/ How to: – Download builtin shader: http://unity3d.com/unity/download/archive – copied UnityCG, UnityShaderVariables, HLSLSupport, AutoLight to assets folder – renamed these as: UnityCG2, UnityShaderVariables2, HLSLSupport2 – created new shader file (that default diffuse) – […]
10
2014
Shadow Casting 2D
Another fake shadow test.. (similar to the old raycast version, but should work with Physics2D). *This is currently abandoned.. See also: http://unitycoder.com/blog/2014/10/12/2d-visibility-shadow-for-unity-indie/ Info: – Testing PseudoAngle to sort object positions Todo: – Take shadow caster PolygonCollider2D vertices, check which one are visible to play – […]
4
2014
Animated Fake Sprite Shadows (shader)
Interesting fake shadow effect for sprites, using modified sprite shader.. Features: – Works with animated sprites – Works without pro – Could be used as fake reflection also? – more info later.. Webplayer: http://unitycoder.com/upload/demos/FakeSpriteShadowShader/
28
2014
Ray-traced Fake Soft Shadows (Shader)
Mooore fake shadows testing! (based on direct3D shaders) Info: – Works with unity indie/free! – Just a shader with sphere intersect function (so it basically only works with spheres..) – Point light & sphere positions are sent to the shader – Each sphere requires invidual […]
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’:
5
2013
FOV Using Recursive Shadowcasting
Converted this script to unity: FOV Using Recursive Shadowcasting, for a quick test.. Instructions: – Attach the script to a plane – use Unlit/Texture shader as material (then no need lights..) – Move main camera so that it sees the plane TODO: – Use this […]
3
2013
2D Grid Fake Shadow
Using the same code from previous 2D Raycasting Visibility Voxel Travelsal, but added dynamic grid array update (using screenshots..), so now the walls (obstacles) are updated realtime on the 2D grid. FEATURES: – Converted the whole thing to C# – Any object visible to camera can […]
Recent posts
- 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
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
- Detect SRP (URP or HDRP) with Assembly Definition Version Defines
Recent Comments
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS

An article by













