Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let scene, camera, renderer, glcanvas, width, height;
- const initThreeJS = () => {
- // доступ к окну отрисовки
- glcanvas = document.getElementById("glcanvas");
- // создание сцены, ее настройка
- scene = new THREE.Scene();
- width = glcanvas.getBoundingClientRect().width;
- height = glcanvas.getBoundingClientRect().height;
- camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000);
- renderer = new THREE.WebGLRenderer({canvas: glcanvas});
- renderer.setSize(width, height);
- renderer.render( scene, camera );
- }
- const drawMoleculaStick = () => {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement