Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 346 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 346 Bytes

glsl-screenspace experimental

Retrieves screen space position in a vertex shader

usage

#pragma glslify: screenspace = require(glsl-screenspace)

vec2 ss = screenspace(projectionMatrix, modelviewmatrix, position);