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.

35 lines
860B

  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. size: 0.1,
  15. map: textures.sprite,
  16. alphaTest: 0.5,
  17. transparent: true,
  18. vertexColors:THREE.VertexColors
  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. vertexColors:THREE.VertexColors
  27. };
  28. materials.qubit = new THREE.PointsMaterial(qubitStyle);
  29. }