Added 3D picking of models to renderer

This commit is contained in:
viktorljung
2015-12-02 18:00:11 +01:00
parent eb50a747fa
commit 18b63c7ef3
9 changed files with 329 additions and 48 deletions
@@ -0,0 +1,19 @@
#version 430
layout (binding = 0) uniform sampler2D Texture;
in VertexData{
vec2 TextureCoordinate;
}Input;
out vec4 fragmentColor;
void main()
{
vec4 texel = texture(Texture, Input.TextureCoordinate);
fragmentColor = texel;
//fragmentColor = vec4(1,0.5,0.7,1);
}