Shaders: check GL_OES_standard_derivatives extension, fixes #145
This commit is contained in:
parent
c4d7b30f0d
commit
19338fab3a
@ -22,8 +22,12 @@ main(){
|
||||
// last two bits hold the texture coordinates.
|
||||
v_st = abs(mod(dir, 4.0)) - 1.0;
|
||||
}
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GL_OES_standard_derivatives
|
||||
#extension GL_OES_standard_derivatives : enable
|
||||
#endif
|
||||
#ifdef GLES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
@ -29,7 +29,9 @@ main(){
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GL_OES_standard_derivatives
|
||||
#extension GL_OES_standard_derivatives : enable
|
||||
#endif
|
||||
#ifdef GLES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
@ -29,7 +29,9 @@ main(){
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GL_OES_standard_derivatives
|
||||
#extension GL_OES_standard_derivatives : enable
|
||||
#endif
|
||||
#ifdef GLES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user