UNPKG

mdx-m3-viewer

Version:

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

15 lines (10 loc) 237 B
const shader = ` precision mediump float; uniform sampler2D u_waterTexture; varying vec2 v_uv; varying vec4 v_color; void main() { gl_FragColor = texture2D(u_waterTexture, v_uv) * v_color; } `; export default shader;