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)

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