Skip to content

Commit

Permalink
[feature]: Support GL_External_OES #13832
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesky013 committed Jan 6, 2023
1 parent c807031 commit 7cccbef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/assets/chunks/common/texture/texture-lod.chunk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.

#pragma extension([GL_EXT_shader_texture_lod, __VERSION__ < 130])
#pragma extension([GL_OES_EGL_image_external, __VERSION__ >= 100, require])
#pragma extension([GL_OES_EGL_image_external_essl3, __VERSION__ >= 300, require])

vec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {
#if __VERSION__ < 130
Expand Down
1 change: 1 addition & 0 deletions editor/exports/offline-mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ typeMap.sampler1DArrayShadow = Type.SAMPLER1D_ARRAY;
typeMap.isampler2D = Type.SAMPLER2D;
typeMap.usampler2D = Type.SAMPLER2D;
typeMap.sampler2DShadow = Type.SAMPLER2D;
typeMap.samplerExternalOES = Type.SAMPLER2D;
typeMap.isampler2DArray = Type.SAMPLER2D_ARRAY;
typeMap.usampler2DArray = Type.SAMPLER2D_ARRAY;
typeMap.sampler2DArrayShadow = Type.SAMPLER2D_ARRAY;
Expand Down

0 comments on commit 7cccbef

Please sign in to comment.