Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

materials.js 826B

8 years ago
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. }