-
-
Save darwin/1bdf46da01b16ecc19410091fca7d325 to your computer and use it in GitHub Desktop.
This file contains 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
(function() { | |
var uq = function(a) { | |
return $APP.en(a, function(b, c, d) { | |
return new $APP.X(null,3,5,$APP.Y,[b + .01, c + .01, d + 0],null) | |
}) | |
}; | |
$APP.Wd("box-demo"); | |
var zq, qt; | |
$APP.Fp = {}; | |
zq = { | |
fov: 75, | |
position: [0, 0, 2] | |
}; | |
qt = function() { | |
function a() { | |
var b = $APP.hj.A ? $APP.hj.A() : $APP.hj.call(null); | |
$APP.Ln.useFrame(function() { | |
return uq($APP.K(b)) | |
}); | |
var c = function() { | |
return { | |
ref: b, | |
onClick: function() { | |
return console.log("click") | |
}, | |
onPointerOver: function() { | |
return console.log("hover") | |
}, | |
onPointerOut: function() { | |
return console.log("unhover") | |
} | |
} | |
}() | |
, d = function() { | |
var f = { | |
attach: "geometry", | |
args: [1, 1, 1] | |
}; | |
return $APP.Ti.j ? $APP.Ti.j("boxBufferGeometry", f) : $APP.Ti.call(null, "boxBufferGeometry", f) | |
}() | |
, e = function() { | |
var f = { | |
attach: "material" | |
}; | |
return $APP.Ti.j ? $APP.Ti.j("meshNormalMaterial", f) : $APP.Ti.call(null, "meshNormalMaterial", f) | |
}(); | |
return $APP.Ti.J ? $APP.Ti.J("mesh", c, d, e) : $APP.Ti.call(null, "mesh", c, d, e) | |
} | |
$APP.z(!1) && (a.displayName = "react-three-fiber.examples.demos.box/\x3cbox\x3e"); | |
return a | |
}(); | |
$APP.ks = function() { | |
function a() { | |
var b = { | |
camera: zq | |
} | |
, c = $APP.Ti.j ? $APP.Ti.j(qt, null) : $APP.Ti.call(null, qt, null); | |
return $APP.Ti.m ? $APP.Ti.m($APP.bs, b, c) : $APP.Ti.call(null, $APP.bs, b, c) | |
} | |
$APP.z(!1) && (a.displayName = "react-three-fiber.examples.demos.box/\x3cdemo\x3e"); | |
return a | |
}(); | |
$APP.La(); | |
} | |
).call(this); | |
//# sourceURL=/.compiled/box-demo.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment