ami-cjs.js
Version:
<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>
26 lines (18 loc) • 404 B
JavaScript
export default class ShadersVertex {
constructor() {
}
compute() {
return `
varying vec4 vPos;
varying vec4 vProjectedCoords;
//
// main
//
void main() {
vPos = modelMatrix * vec4(position, 1.0 );
vProjectedCoords = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0 );
}
`;
}
}