From 68915ce20db291a149631ce43f704f2998d5ba62 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 14 Jan 2020 23:53:13 -0800 Subject: Add support for 3D textures to GLES2 --- drivers/gles2/shaders/canvas.glsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'drivers/gles2/shaders/canvas.glsl') diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl index afce403a9f..3b685b3f0b 100644 --- a/drivers/gles2/shaders/canvas.glsl +++ b/drivers/gles2/shaders/canvas.glsl @@ -10,6 +10,12 @@ precision highp float; precision highp int; #endif +#ifndef USE_GLES_OVER_GL +#extension GL_OES_texture_3D : enable +#else +#extension GL_EXT_texture_array : enable +#endif + uniform highp mat4 projection_matrix; /* clang-format on */ @@ -229,6 +235,12 @@ VERTEX_SHADER_CODE /* clang-format off */ [fragment] +#ifndef USE_GLES_OVER_GL +#extension GL_OES_texture_3D : enable +#else +#extension GL_EXT_texture_array : enable +#endif + // texture2DLodEXT and textureCubeLodEXT are fragment shader specific. // Do not copy these defines in the vertex section. #ifndef USE_GLES_OVER_GL -- cgit v1.2.3