Anders and Briegel in Python
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

materials.js 826B

12345678910111213141516171819202122232425262728293031323334
  1. var textures = {};
  2. var materials = {};
  3. // Load the site texture from the data URI
  4. function loadMaterials(argument) {
  5. textures.sprite = new THREE.Texture(document.getElementById("ball"));
  6. textures.sprite.needsUpdate = true;
  7. var lineStyle = {
  8. color: "gray",
  9. transparent: false,
  10. linewidth: 1
  11. };
  12. materials.edge = new THREE.LineBasicMaterial(lineStyle);
  13. var pointStyle = {
  14. color: 0xcccccc,
  15. size: 0.1,
  16. map: textures.sprite,
  17. alphaTest: 0.5,
  18. transparent: true,
  19. };
  20. materials.point = new THREE.PointsMaterial(pointStyle);
  21. var qubitStyle = {
  22. size: 0.8,
  23. map: textures.sprite,
  24. alphaTest: 0.5,
  25. transparent: true,
  26. color: "red"
  27. };
  28. materials.qubit = new THREE.PointsMaterial(qubitStyle);
  29. }