forked from layabox/LayaAir1.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Weng Xiang
authored and
Weng Xiang
committed
Dec 9, 2016
1 parent
b04913e
commit 7bef2cf
Showing
282 changed files
with
12,426 additions
and
9,784 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file removed
BIN
-672 Bytes
bin/as/LayaAirFlash/flash/src/files/fillTexture/fillTextureShader.ps
Binary file not shown.
Binary file not shown.
24 changes: 12 additions & 12 deletions
24
...rc/files/fillTexture/fillTextureShader.vs → ...lash/flash/src/files/fillTextureShader.vs
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
attribute vec2 position; | ||
attribute vec2 texcoord; | ||
attribute vec4 color; | ||
uniform vec2 size; | ||
uniform mat4 mul_mmat; | ||
varying vec2 v_texcoord; | ||
varying vec4 v_color; | ||
void main() { | ||
vec4 pos=mul_mmat*vec4(position.x,position.y,0,1 ); | ||
gl_Position = vec4((pos.x/size.x-0.5)*2.0,(0.5-pos.y/size.y)*2.0,pos.z,1.0); | ||
v_color = color; | ||
v_texcoord = texcoord; | ||
attribute vec2 position; | ||
attribute vec2 texcoord; | ||
attribute vec4 color; | ||
uniform vec2 size; | ||
uniform mat4 mul_mmat; | ||
varying vec2 v_texcoord; | ||
varying vec4 v_color; | ||
void main() { | ||
vec4 pos=mul_mmat*vec4(position.x,position.y,0,1 ); | ||
gl_Position = vec4((pos.x/size.x-0.5)*2.0,(0.5-pos.y/size.y)*2.0,pos.z,1.0); | ||
v_color = color; | ||
v_texcoord = texcoord; | ||
} |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.