STKMesh: Rendering works...sortof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#version 130
|
||||
uniform sampler2D texture;
|
||||
in vec2 uv;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_FragData[0] = vec4(1., 0., 0., 1.);
|
||||
gl_FragData[0] = texture2D(texture, uv);
|
||||
gl_FragData[1] = vec4(0., 0., 0., 1.);
|
||||
gl_FragData[2] = vec4(0., 0., 0., 1.);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
uniform mat4 ModelViewProjectionMatrix;
|
||||
|
||||
in vec3 Position;
|
||||
in vec2 Texcoord;
|
||||
out vec2 uv;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
uv = Texcoord;
|
||||
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user