Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

set pixel ?

Discussion in 'Shaders' started by acropole, Jun 26, 2013.

  1. acropole

    acropole

    Joined:
    Aug 13, 2009
    Posts:
    171
    Hi,

    Is there any way to set texture pixel in shader ?
    I need to save the pixel shader result to use it in the next frame.
    I tried this but it don't work :

    Code (csharp):
    1.     SubShader {
    2.         Tags { "RenderType"="Opaque" }
    3.         LOD 200
    4.  
    5.         Pass {  
    6.             SetTexture [_MainTex] {
    7.                 combine previous + texture
    8.             }
    9.         }
    10.     }
    11.