Support float texture data on OpenGL ES 2.0

This commit is contained in:
raysan5 2018-12-25 15:19:25 +01:00
parent 35a6e9a074
commit 7b8965eb38
7 changed files with 23 additions and 14 deletions

View file

@ -16,12 +16,12 @@ uniform mat4 projection;
uniform mat4 view;
// Output vertex attributes (to fragment shader)
out vec3 fragPos;
out vec3 fragPosition;
void main()
{
// Calculate fragment position based on model transformations
fragPos = vertexPosition;
fragPosition = vertexPosition;
// Remove translation from the view matrix
mat4 rotView = mat4(mat3(view));