Made shaders compatible with Intel GPUs.

This commit is contained in:
Maciej Sumiński 2013-06-30 15:37:35 +02:00
parent bc8ea55092
commit 5eb38ec232
2 changed files with 3 additions and 4 deletions

View File

@ -25,14 +25,13 @@
*/ */
#version 120 #version 120
//#pragma debug(on)
// Shader types // Shader types
const float SHADER_LINE = 1.0; const float SHADER_LINE = 1.0;
const float SHADER_FILLED_CIRCLE = 2.0; const float SHADER_FILLED_CIRCLE = 2.0;
const float SHADER_STROKED_CIRCLE = 3.0; const float SHADER_STROKED_CIRCLE = 3.0;
varying in vec4 shaderParams; varying vec4 shaderParams;
void filledCircle( vec2 aCoord ) void filledCircle( vec2 aCoord )
{ {

View File

@ -32,7 +32,7 @@ const float SHADER_FILLED_CIRCLE = 2.0;
const float SHADER_STROKED_CIRCLE = 3.0; const float SHADER_STROKED_CIRCLE = 3.0;
attribute vec4 attrShaderParams; attribute vec4 attrShaderParams;
varying out vec4 shaderParams; varying vec4 shaderParams;
void main() void main()
{ {