Skip to content

Instantly share code, notes, and snippets.

View marcopompili's full-sized avatar
🐌

Marco Pompili marcopompili

🐌
View GitHub Profile
@marcopompili
marcopompili / index.html
Last active November 24, 2017 06:37
Three.js basic texture loading
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Texture loading 01</title>
<style media="screen">
html, body {
margin: 0;
padding: 0;
}
@marcopompili
marcopompili / Globe.js
Last active June 2, 2023 13:24
THREE.js - Loading multiple textures
var Globe = function (radius, segments) {
THREE.Object3D.call(this);
this.name = "Globe";
var that = this;
// instantiate a loader
var loader = new THREE.TextureLoader();
@marcopompili
marcopompili / TrackballControls.js
Last active February 23, 2024 08:31
GeoJSON Test
/**
* @author Eberhard Graether / http://egraether.com/
*/
THREE.TrackballControls = function ( object, domElement ) {
var _this = this;
var STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM: 4, TOUCH_PAN: 5 };
this.object = object;