UNPKG

gtajesgenga-ami.js

Version:

1. [Hello AMI](#hello-ami) 2. [Features](#features) 3. [Usage](#yarn) 4. [Developer corner](#developer-corner) 5. [Change log](#change-log) 6. [Credits](#credits) 7. [Citations](#citations)

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 ); } `; } }