topical media & game development
lib-unity-demo-shader-Assets-Edge-Detection-EdgeDetectEffectNormals.js / js
@script ExecuteInEditMode
class EdgeDetectEffectNormals extends ImageEffectBase
{
function Start() {
camera.depthTextureMode = DepthTextureMode.DepthNormals;
}
function OnRenderImage (source : RenderTexture, destination : RenderTexture)
{
ImageEffects.BlitWithMaterial (material, source, destination);
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.