Skip to content

Instantly share code, notes, and snippets.

@ThePhD
Created January 25, 2014 18:40
Show Gist options
  • Select an option

  • Save ThePhD/8621281 to your computer and use it in GitHub Desktop.

Select an option

Save ThePhD/8621281 to your computer and use it in GitHub Desktop.
float4x4 ViewProjection;
texture Tex0;
sampler Texture0;
void ImageVertex ( inout float4 position : SV_Position,
inout float4 color : COLOR0,
inout float2 tex : TEXCOORD0 ) {
position = mul(position, ViewProjection);
}
float4 ImagePixel ( float4 pos : SV_Position,
float4 color : COLOR0,
float2 tex : TEXCOORD0 ) : SV_Target0 {
return tex2D( Texture0, tex ) * color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment