Made shaders compatible with Intel GPUs.
This commit is contained in:
parent
bc8ea55092
commit
5eb38ec232
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue