var camera, scene, renderer, raycaster;
var keyboard = new KeyboardState();
var angle = 0, NOP = 3, count, picks = [];
var mouse = new THREE.Vector2();
init();
animate();
function init() {
scene = new THREE.Scene();
camera = new THREE.OrthographicCamera(-10, 10, 10, -10, -10, 1000);
camera.position.z = 500;
scene.add(camera);
let loader = new THREE.TextureLoader(); //84 texture 載入器
loader.setCrossOrigin ('');
let fig = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/nvOqWCE.png'),
transparent: true
})
let title = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/hspUKYu.png'),
transparent: true
})
let start_b = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/pcIc8pe.png'),
transparent: true
})
let ct = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/9Mkydog.png'),
transparent: true
})
let card = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/RWnYIYv.jpg')
})
let plus_mat = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/LygZbBz.jpg')
})
let minus_mat = new THREE.MeshBasicMaterial({
map: loader.load('https://i.imgur.com/BxUrqRi.jpg')
})
//https://i.imgur.com/pcIc8pe.png
//https://i.imgur.com/hspUKYu.png title
/*let light = new THREE.PointLight(0xffffff);
light.position.set(100, 300, 200);
scene.add(light);
let gridXZ = new THREE.GridHelper(200, 20, 'red', 'white');
scene.add(gridXZ);
*/
var fframe = new THREE.Mesh(new THREE.PlaneGeometry(20, 20), fig);
fframe.position.z = -1;
var tt = new THREE.Mesh(new THREE.PlaneGeometry(10, 3), title);
tt.position.y = 7;
var ss = new THREE.Mesh(new THREE.PlaneGeometry(5, 1.5), start_b);
ss.position.y = -5;
count = new THREE.Mesh(new THREE.PlaneGeometry(4, 4), card);
count.material.map.offset.x = (NOP-1) * 0.2;
count.material.map.repeat.x = 0.2;
count.material.map.offset.y = 0.5;
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.