Skip to content

Instantly share code, notes, and snippets.

@williamsiuhang
Last active November 13, 2018 21:53
Show Gist options
  • Save williamsiuhang/0b142bab52916576e0bd79967339c1b8 to your computer and use it in GitHub Desktop.
Save williamsiuhang/0b142bab52916576e0bd79967339c1b8 to your computer and use it in GitHub Desktop.
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