cakeslice / Outline-Effect

Outline Image Effect for Unity
MIT License
1.48k stars 201 forks source link

blurred outilne #10

Closed zDemoniac closed 7 years ago

zDemoniac commented 7 years ago

How we can add blur effect to outline? I tried adding to OnRenderImage()

blur.OnRenderImage(renderTexture, extraRenderTexture); outlineShaderMaterial.SetTexture("_OutlineSource", extraRenderTexture);

(where blur is added in Start() like BlurOptimized blur = cameraGameObject.AddComponent();)

but looks like shader can't work with blurred texture

cakeslice commented 7 years ago

Yeah that won't work, you would have to render the outline (not the outlineSource) to another RenderTexture, blur it, and then merge with the final image