UNPKG

gl-plane

Version:

Draw a plane with texture

24 lines (18 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = `precision highp float; #define GLSLIFY 1 attribute vec3 position;//, normal; attribute vec2 uv; uniform mat4 model , view , projection; varying vec2 f_uv; vec4 project(vec3 p) { return projection * view * model * vec4(p, 1.0); } void main() { gl_Position = project(position); f_uv = uv; } `;