UNPKG

ami.js

Version:

<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>

20 lines (16 loc) 374 B
export default class ShadersVertex { compute() { return ` // varying vec4 vPos; varying vec4 vProjectedCoords; // // main // void main() { vec4 vPos = modelMatrix * vec4(position, 1.0 ); vProjectedCoords = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0 ); } `; } }