UNPKG

@edsilv/ami.js

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/214063/46479857-4cd66e80-c7f0-11e8-9585-5748409c9490.png" width="60%"> </p>

16 lines (13 loc) 286 B
export default class ShadersVertex { compute() { return ` varying vec3 vPos; varying vec3 vNormal; void main() { vNormal = normal; vPos = (modelMatrix * vec4(position, 1.0 )).xyz; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0 ); } `; } }