ebiten/internal/graphicsdriver/opengl
Hajime Hoshi b1d7a5f595 shaderir/glsl: Enable dFdx for WebGL
With WebGL1, an extension is required for dFdx. On the other hand,
with WebGL2, GLSL ES 300 is required and the extension is forbidden.
This change fixes shaderir/glsl to switch the output depends on the
WebGL version.

This change also adds a new build tag 'ebitenwebgl1' forcing WebGL 1.

Updates #1404
2020-11-21 19:07:54 +09:00
..
gl restorable: Reland: Do not record pixels if restoring is not requried 2020-11-14 15:00:16 +09:00
gles restorable: Reland: Do not record pixels if restoring is not requried 2020-11-14 15:00:16 +09:00
bytes.go graphicsdriver/opengl: Exclude bytes.go from non-mobile environments 2020-08-20 22:24:21 +09:00
context_desktop.go restorable: Reland: Do not record pixels if restoring is not requried 2020-11-14 15:00:16 +09:00
context_js.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
context_mobile.go restorable: Reland: Do not record pixels if restoring is not requried 2020-11-14 15:00:16 +09:00
context_notwebgl1.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
context_notx.go graphicsdriver/opengl: Bug fix: Build error on Android 2020-07-26 17:01:11 +09:00
context_webgl1.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
context_x.go Clean up the 'js' build tags 2020-10-07 02:07:03 +09:00
context.go graphicsdriver/metal, graphicsdriver/opengl: Reland: Remove the thread usages for performance 2020-10-13 02:46:31 +09:00
defaultshader.go Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
framebuffer.go graphicsdriver/opengl: Rename Driver -> Graphics 2020-04-04 17:23:38 +09:00
graphics_mobile.go graphicsdriver/opengl: Use native GLES functions for mobiles 2020-10-19 03:51:20 +09:00
graphics.go graphicsdriver/opengl: Use PBO when retrieving pixels 2020-11-13 09:10:56 +09:00
image.go restorable: Reland: Do not record pixels if restoring is not requried 2020-11-14 15:00:16 +09:00
locationcache.go graphicsdriver/opengl: Use glBindAttribLocation instead of glGetAttribLocation 2019-02-16 14:35:53 +09:00
program.go Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
shader_js.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
shader_notjs.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
shader.go shaderir/glsl: Enable dFdx for WebGL 2020-11-21 19:07:54 +09:00
types.go Improve panic messages 2019-02-06 23:43:03 -10:00