Skip to content

Commit

Permalink
highp > mediump
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jan 8, 2019
1 parent 68ef8e3 commit 9fae35a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/triangle-fragment.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#extension GL_OES_standard_derivatives : enable

precision highp float;
precision mediump float;

#pragma glslify: cookTorrance = require(glsl-specular-cook-torrance)
#pragma glslify: faceNormal = require('glsl-face-normal')
Expand Down
2 changes: 1 addition & 1 deletion lib/triangle-vertex.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
precision highp float;
precision mediump float;

attribute vec3 position, normal;
attribute vec4 color;
Expand Down

3 comments on commit 9fae35a

@etpinard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I ask why?

@archmoj
Copy link
Contributor Author

@archmoj archmoj commented on 9fae35a Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other mesh3d shaders use mediump. So in theory this may run faster.

@etpinard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the info 👌

Please sign in to comment.