Urho3D/bin/CoreData/Shaders/GLSL/CopyFramebuffer.glsl
2015-01-18 21:31:13 +08:00

21 lines
404 B
GLSL

#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
varying vec2 vScreenPos;
void VS()
{
mat4 modelMatrix = iModelMatrix;
vec3 worldPos = GetWorldPos(modelMatrix);
gl_Position = GetClipPos(worldPos);
vScreenPos = GetScreenPosPreDiv(gl_Position);
}
void PS()
{
gl_FragColor = texture2D(sDiffMap, vScreenPos);
}