This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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 ) { |