UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

2 lines (1 loc) 283 B
export default "uniform mat4 textureMatrix;\nvarying vec4 vUv;\nvarying vec3 vertexColor;\nattribute vec3 color;\n\nvoid main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n vertexColor = color;\n}";