diff options
author | S. Davilla <davilla@4pi.com> | 2011-05-04 16:09:52 -0400 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2011-05-04 16:10:29 -0400 |
commit | 6af53ba87b6b045b5151812a217b31c7a41e7dc4 (patch) | |
tree | 239120e147586806efb602682ef4f62e018ddb39 /system/shaders | |
parent | 0f72d9967952f1deba6825c572fbf9aa3dcd0abf (diff) |
change all usage of m_colour from mediump to lowp in shaders, yields a slight fps increase
Diffstat (limited to 'system/shaders')
-rw-r--r-- | system/shaders/guishader_frag_default.glsl | 2 | ||||
-rw-r--r-- | system/shaders/guishader_frag_fonts.glsl | 2 | ||||
-rw-r--r-- | system/shaders/guishader_frag_multi_blendcolor.glsl | 2 | ||||
-rw-r--r-- | system/shaders/guishader_frag_rgba.glsl | 2 | ||||
-rw-r--r-- | system/shaders/guishader_frag_rgba_blendcolor.glsl | 2 | ||||
-rw-r--r-- | system/shaders/guishader_vert.glsl | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/system/shaders/guishader_frag_default.glsl b/system/shaders/guishader_frag_default.glsl index 1477322e00..4311a6caba 100644 --- a/system/shaders/guishader_frag_default.glsl +++ b/system/shaders/guishader_frag_default.glsl @@ -20,7 +20,7 @@ */ precision mediump float; -varying vec4 m_colour; +varying lowp vec4 m_colour; // SM_DEFAULT shader void main () diff --git a/system/shaders/guishader_frag_fonts.glsl b/system/shaders/guishader_frag_fonts.glsl index 150f33ec18..5628dd3dc2 100644 --- a/system/shaders/guishader_frag_fonts.glsl +++ b/system/shaders/guishader_frag_fonts.glsl @@ -22,7 +22,7 @@ precision mediump float; uniform sampler2D m_samp0; varying vec4 m_cord0; -varying vec4 m_colour; +varying lowp vec4 m_colour; // SM_FONTS shader void main () diff --git a/system/shaders/guishader_frag_multi_blendcolor.glsl b/system/shaders/guishader_frag_multi_blendcolor.glsl index a550e9207e..e012a6bfc5 100644 --- a/system/shaders/guishader_frag_multi_blendcolor.glsl +++ b/system/shaders/guishader_frag_multi_blendcolor.glsl @@ -24,7 +24,7 @@ uniform sampler2D m_samp0; uniform sampler2D m_samp1; varying vec4 m_cord0; varying vec4 m_cord1; -varying vec4 m_colour; +varying lowp vec4 m_colour; // SM_MULTI shader void main () diff --git a/system/shaders/guishader_frag_rgba.glsl b/system/shaders/guishader_frag_rgba.glsl index 97424e965e..743323a387 100644 --- a/system/shaders/guishader_frag_rgba.glsl +++ b/system/shaders/guishader_frag_rgba.glsl @@ -24,7 +24,7 @@ uniform sampler2D m_samp0; uniform sampler2D m_samp1; varying vec4 m_cord0; varying vec4 m_cord1; -varying vec4 m_colour; +varying lowp vec4 m_colour; uniform int m_method; // SM_TEXTURE_NOBLEND diff --git a/system/shaders/guishader_frag_rgba_blendcolor.glsl b/system/shaders/guishader_frag_rgba_blendcolor.glsl index c903eae323..ec20991e4f 100644 --- a/system/shaders/guishader_frag_rgba_blendcolor.glsl +++ b/system/shaders/guishader_frag_rgba_blendcolor.glsl @@ -24,7 +24,7 @@ uniform sampler2D m_samp0; uniform sampler2D m_samp1; varying vec4 m_cord0; varying vec4 m_cord1; -varying vec4 m_colour; +varying lowp vec4 m_colour; uniform int m_method; // SM_TEXTURE diff --git a/system/shaders/guishader_vert.glsl b/system/shaders/guishader_vert.glsl index 8ef13bcc3c..471abd8d9f 100644 --- a/system/shaders/guishader_vert.glsl +++ b/system/shaders/guishader_vert.glsl @@ -25,7 +25,7 @@ attribute vec4 m_attrcord0; attribute vec4 m_attrcord1; varying vec4 m_cord0; varying vec4 m_cord1; -varying vec4 m_colour; +varying lowp vec4 m_colour; uniform mat4 m_proj; uniform mat4 m_model; |