Adding FRG Engine
This commit is contained in:
1 parent
70cf2b9543
commit
93805a5727
8 files changed
+97
-8
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
precision mediump float;
|
||||
varying vec2 TexCoord;
|
||||
|
||||
uniform sampler2D Texture;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
vec4 texColor = texture2D(Texture, TexCoord).rgba;
|
||||
//gl_FragColor = texColor;
|
||||
gl_FragColor = vec4(texColor.rgb*2.0 + vec3(0.2, 0.2, 0.2), texColor.a);
|
||||
//gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
varying vec2 TexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.xyz,1.0);
|
||||
|
||||
TexCoord = gl_MultiTexCoord0.st;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user