MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / pm

Function pm

public/iframe/lib/js/mixinsThree.js:327–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 renderer.shadowMapEnabled = true;// 渲染器支持阴影
326
327 function pm () {
328 for (var jiaodu = 0; jiaodu <= 360; jiaodu++) {
329 dx = Math.cos(jiaodu) * 10 * 2.5;
330 dy = -0.5 * jiaodu * Math.PI;// 互相垂直
331 // dy = -0.5*Math.PI; //互相平行
332 dz = Math.sin(jiaodu) * 25;
333 var planeGeometryX = new THREE.PlaneGeometry(0.6, 10, 0);
334 planeMaterialX = new THREE.MeshPhongMaterial();
335 planeMaterialX.opacity = 1;
336 planeMaterialX.side = THREE.DoubleSide;
337 // planeMaterialX.wireframe =true;
338 planeMaterialX.transparent = true;
339 planeMaterialX.color = new THREE.Color(0xffffff);
340 var dd1 = new THREE.Mesh(planeGeometryX, planeMaterialX);
341 dd1.position.x = dx;
342 dd1.rotation.y = dy;
343 dd1.position.z = dz;
344 dd1.position.y = -Math.random() * 220;
345 dd1.scale.y = Math.random() * 1;
346 dd1.scale.x = Math.random() * 1;
347 dd1.scale.z = Math.random() * 1;
348 group2.add(dd1);
349 group2.position.set(0, 0, 0);
350 }
351
352 for (var jiaodu = 0; jiaodu <= 360; jiaodu++) {
353 dx = Math.cos(jiaodu) * 10 * 2.5;
354 dy = -0.5 * jiaodu * Math.PI;// 互相垂直
355 // dy = 0.5*Math.PI; //互相平行
356 dz = Math.sin(jiaodu) * 25;
357 var planeGeometryX = new THREE.PlaneGeometry(0.5, 10, 0);
358 planeMaterialX = new THREE.MeshPhongMaterial();
359 planeMaterialX.opacity = 0.7;
360 planeMaterialX.side = THREE.DoubleSide;
361 // planeMaterialX.wireframe =true;
362 planeMaterialX.transparent = true;
363 planeMaterialX.color = new THREE.Color(0xffffff);
364 var dd1 = new THREE.Mesh(planeGeometryX, planeMaterialX);
365 dd1.position.x = dx;
366 dd1.rotation.y = dy;
367 dd1.position.z = dz;
368 dd1.position.y = -Math.random() * 220;
369 dd1.scale.y = Math.random() * 4;
370 dd1.scale.x = Math.random() * 2;
371 dd1.scale.z = Math.random() * 1;
372 group3.add(dd1);
373 group3.position.set(0, 0, 0);
374 }
375
376 for (var jiaodu2 = 0; jiaodu2 <= 60; jiaodu2++) {
377 dx2 = Math.cos(jiaodu2) * 10;
378 dz2 = Math.sin(jiaodu2) * 10;
379 dy2 = Math.cos(Math.random() * jiaodu2) * 0.5;
380 var planeGeometryX2 = new THREE.SphereGeometry(Math.cos(jiaodu2) * 2, Math.sin(jiaodu2), 0);
381 planeMaterialX2 = new THREE.MeshLambertMaterial();
382 planeMaterialX2.side = THREE.DoubleSide;
383 // planeMaterialX2.wireframe =true;
384 planeMaterialX2.transparent = true;

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected