Skip to content

Instantly share code, notes, and snippets.

@BlockoS
Created November 11, 2010 22:41
Show Gist options
  • Save BlockoS/673355 to your computer and use it in GitHub Desktop.
Save BlockoS/673355 to your computer and use it in GitHub Desktop.
<samplerList>
<sampler2D name="source" minFilter="LINEAR" magFilter="NEAREST" wrapS="CLAMP_TO_EDGE" wrapT="BORDER"/>
<sampler2D name="tex" level="0" minFilter="LINEAR" magFilter="NEAREST" wrapS="CLAMP"/>
</samplerList>
<out>
<vec4 name="color" index="0"/>
<vec4 name="normal" index="1"/>
</out>
<shader>
<![CDATA[
void main()
{
color = vec4(1.0) * texture2D( tex, vec2(0.0) );
normal = texture2D( source, vec2(1.0) );
}
]]>
</shader>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment