Skip to content

Instantly share code, notes, and snippets.

@spite
Created May 5, 2015 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spite/f6c9addcfce71a0bb688 to your computer and use it in GitHub Desktop.
Save spite/f6c9addcfce71a0bb688 to your computer and use it in GitHub Desktop.
Private THREE objects
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r71/three.min.js"></script>
<script>
var scene = new THREE.Scene();
function Private() {
var scene = new THREE.Scene();
function render() {}
return {
render: render
}
}
var p = new Private();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment