-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature]: Support GL_External_OES #13832
- Loading branch information
1 parent
c807031
commit 3af7f2b
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Effect Syntax Guide: https://docs.cocos.com/creator/manual/zh/shader/index.html | ||
|
||
CCEffect %{ | ||
techniques: | ||
- name: opaque | ||
passes: | ||
- vert: legacy/main-functions/general-vs:vert # builtin header | ||
frag: unlit-oes-fs:frag | ||
properties: &props | ||
mainTexture: { value: white } | ||
}% | ||
|
||
CCProgram unlit-oes-fs %{ | ||
precision highp float; | ||
#include <common/texture/texture-lod> | ||
#include <legacy/output> | ||
|
||
in vec2 v_uv; | ||
in vec3 v_position; | ||
|
||
uniform samplerExternalOES mainTexture; | ||
|
||
vec4 frag () { | ||
vec4 col = texture(mainTexture, v_uv); | ||
return CCFragOutput(col); | ||
} | ||
}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"ver": "1.6.2", | ||
"importer": "effect", | ||
"imported": true, | ||
"uuid": "1d720f90-c734-4173-a814-a3afcdb5cf2a", | ||
"files": [ | ||
".json" | ||
], | ||
"subMetas": {}, | ||
"userData": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters