kolliziya dobavlena
This commit is contained in:
1 parent
54d0af8afb
commit
c31139fdec
5 files changed
+59
-11
No files matched your search
@@ -0,0 +1,8 @@
|
||||
#version 130
|
||||
|
||||
in vec2 texCoord;
|
||||
uniform sampler2D textureSampler;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture2D(textureSampler, texCoord);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
#version 130
|
||||
|
||||
in vec3 position;
|
||||
in vec2 texcoord;
|
||||
|
||||
uniform mat4 projection;
|
||||
uniform mat4 modelView;
|
||||
|
||||
out vec2 texCoord;
|
||||
|
||||
void main() {
|
||||
gl_Position = projection * modelView * vec4(position, 1.0);
|
||||
texCoord = texcoord;
|
||||
}
|
||||
Reference in new issue
Block a user