Last active
November 13, 2018 21:53
-
-
Save williamsiuhang/0b142bab52916576e0bd79967339c1b8 to your computer and use it in GitHub Desktop.
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
class Shaders{ | |
static basic_vertex() { | |
return ` | |
void main() { | |
gl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0); | |
} | |
`; | |
} | |
static basic_fragment() { | |
return ` | |
void main() { | |
gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0); | |
} | |
`; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment