Skip to content

Instantly share code, notes, and snippets.

View obecerra3's full-sized avatar
👾

Oscar Becerra obecerra3

👾
View GitHub Profile
// Collection of Open Source Shaping Functions in GLSL
// https://thebookofshaders.com/05/
// https://www.shadertoy.com/view/3lVyDD
//============================================================================================================
#define PI 3.14159265359
#define epsilon 0.00001
float sq(float x) {
return x*x;
/**
* @author mrdoob / http://mrdoob.com/
* @author Mugen87 / https://github.com/Mugen87
* @edits obecerra3 / https://github.com/obecerra3
Pointer lock controls using requirejs with z axis as up vector
*/
define(["three"], (THREE) => {
var PointerLockControls = function ( camera, domElement ) {