Created
December 7, 2012 01:08
-
-
Save xl1/4229906 to your computer and use it in GitHub Desktop.
http://jsdo.it/xl1/rD74 のシェーダ
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
precision mediump float; | |
uniform vec2 u_textureSize; | |
void main(){ | |
float x = u_textureSize.x - 50.0; | |
gl_FragColor = vec4(x / 250.0, 0.0, 0.0, 1.0); | |
} |
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
attribute vec4 a_position; | |
uniform mat4 u_projectionMatrix; | |
void main(){ | |
gl_Position = u_projectionMatrix * a_position; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment