Urho3D/bin/CoreData/Shaders/GLSL/Skydome.glsl
2016-09-11 13:27:47 +08:00

20 lines
370 B
GLSL

#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
varying vec2 vTexCoord;
void VS()
{
mat4 modelMatrix = iModelMatrix;
vec3 worldPos = GetWorldPos(modelMatrix);
gl_Position = GetClipPos(worldPos);
gl_Position.z = gl_Position.w;
vTexCoord = iTexCoord.xy;
}
void PS()
{
gl_FragColor = texture2D(sDiffMap, vTexCoord);
}