Browsing articles tagged with " light"
Jul
3
2016

Fake Tube Light Shader

Tried to test idea about tube lights (or “line light”), by using custom lighting in shader, you could sample the light several times from different positions/angles, so that it looks like the light is not just a single point. (not really working here properly yet, […]

Mar
23
2016

Volumetric Image Effect Shader

  Converted this old godrays shader ( http://unitycoder.com/blog/2012/10/02/fake-godrays-shader/ ) into image effect – interesting results! (see video below)     Source codes below (Attach script to main camera) Scene has just few spotlights, particles, and 3d objects.. — References: Image effects tutorial – http://www.alanzucconi.com/2015/07/08/screen-shaders-and-postprocessing-effects-in-unity3d/

Oct
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 […]

Aug
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 […]

Aug
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 […]

Jan
31
2013

Fake SpotLight Shadows

Testing one idea for fake spotlight shadows. In the image, spotlight is at the wall, cylinder column is there to block light. (shadowmap size 1024×1024) Current version info: – Have to build the shadow texture manually..(later should be possible to do it all in script) […]

Oct
2
2012

Fake Godrays Shader

Godrays shader on a plane texture.. since no RenderToTexturein indie. ( Converted to unity from this webgl shader) Should try it as a camera shader also.. Features: – Adjustable values: effect xy position, exposure, decay, density, weight, clamp,  samples (screenshot is using 100 samples) Webplayer: […]

Mar
25
2012

Fake Shadow Ideas: Using Particles as Light Photons?

This is quite an early test.. what if you use particles as “light photons” ? Then no need to do raycasting? Current features: (main screenshot) – Shuriken particle system, Shape: Cone, angle:90 – Collision planes on those white boxes (uh..shuriken doesnt support “world collisions”, only […]

Mar
10
2012

Fake Illumination Based on Object Texture Color

Testing how it would look, if objects “illuminate” light around them (using colored lights), based on texture colors.. Version#1 (info) – On startup, script goes thru target object vertices, triangles, normals, uv’s and creates colored lights – Currently using point lights, should be better with […]

Jan
4
2012

Fake 2D Realtime Raycast Shadows (for unity free version)

Testing another way of doing realtime 2D shadows, by casting rays from the player position, then create “light” polygon to the area where we can see. More info later, need to test few things (using setpixels & shader? or using different shader for better light […]

Pages:12»

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.