Finally completed frame buffer
This commit is contained in:
1 parent
4ae5adaeff
commit
d2a081588f
5 files changed
+170
-124
No files matched your search
@@ -5,6 +5,7 @@ varying vec2 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
float xstep = 0.5f/800.0f;
|
||||
float ystep = 0.5f/600.0f;
|
||||
|
||||
@@ -20,4 +21,6 @@ void main()
|
||||
+ vec4(texture2D(Texture, vec2(texCoord.x+2.0*xstep, texCoord.y)).rgb,1.0) * 0.1;
|
||||
|
||||
gl_FragColor = texColor;
|
||||
|
||||
//gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
@@ -1,7 +1,16 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec2 vTexCoord;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
uniform mat3 ModelRotateMatrix;
|
||||
uniform vec3 ModelTranslateVector;
|
||||
|
||||
varying vec2 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = ftransform();
|
||||
texCoord = gl_MultiTexCoord0.st;
|
||||
vec4 realVertexPos = vec4(ModelRotateMatrix * vPosition.xyz + ModelTranslateVector, 1.0);
|
||||
gl_Position = ProjectionMatrix * realVertexPos;
|
||||
|
||||
texCoord = vTexCoord.st;
|
||||
}
|
||||
Reference in new issue
Block a user