Created
May 5, 2015 00:22
-
-
Save spite/f6c9addcfce71a0bb688 to your computer and use it in GitHub Desktop.
Private THREE objects
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
<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