Meshes can display textures
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
|
||||
in vec2 TexCoord;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform sampler2D theTexture;
|
||||
|
||||
void main() {
|
||||
FragColor = vec4(1.f, 0.5f, 0.2f, 1.0f);
|
||||
//FragColor = vec4(1.f, 0.5f, 0.2f, 1.0f);
|
||||
FragColor = texture(theTexture, TexCoord);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user