Support float texture data on OpenGL ES 2.0
This commit is contained in:
parent
35a6e9a074
commit
7b8965eb38
7 changed files with 23 additions and 14 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue