Advertisement
Void-voiD

Untitled

Aug 5th, 2020
1,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let scene, camera, renderer, glcanvas, width, height;
  2.  
  3.  
  4. const initThreeJS = () => {
  5.     // доступ к окну отрисовки
  6.     glcanvas = document.getElementById("glcanvas");
  7.     // создание сцены, ее настройка
  8.     scene = new THREE.Scene();
  9.     width = glcanvas.getBoundingClientRect().width;
  10.     height = glcanvas.getBoundingClientRect().height;
  11.     camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000);
  12.     renderer = new THREE.WebGLRenderer({canvas: glcanvas});
  13.     renderer.setSize(width, height);
  14.     renderer.render( scene, camera );
  15. }
  16.  
  17.  
  18. const drawMoleculaStick = () => {
  19.    
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement