Skip to content

Instantly share code, notes, and snippets.

void main_vertex( float4 position : POSITION,
out float4 oPosition : POSITION,
float2 texCoord : TEXCOORD0,
out float2 oTexCoord : TEXCOORD0,
uniform float4x4 modelViewProj )
{
oPosition = mul(modelViewProj, position);
oTexCoord = texCoord;
}
@eadmaster
eadmaster / Motionblur.cg
Created November 18, 2012 23:29
Motionblur shader
/* derived from https://github.com/libretro/common-shaders/blob/master/Motionblur/Motionblur-blue.cg
to increase the effect, uncomment more PREVX lines in each color channel
*/
struct previous
{
uniform sampler2D texture;
float2 tex_coord;
};