UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

20 lines (16 loc) 314 B
export default { vs: ` uniform mat4 u_mvp; uniform mat4 u_transform; attribute vec3 a_position; void main() { gl_Position = u_mvp * u_transform * vec4(a_position, 1.0); } `, fs: ` uniform vec3 u_color; void main() { gl_FragColor = vec4(u_color, 1.0); } `, };