Manjsi popravki kegelnega kadra, testiranje scheme verzije
parent
4d34baade5
commit
1e49d7811c
4
anim.scm
4
anim.scm
|
@ -94,14 +94,14 @@
|
||||||
(make-plane 0.002
|
(make-plane 0.002
|
||||||
0.002
|
0.002
|
||||||
(make-pbr-material #:base-color-factor (vec3 1.0 0 0)
|
(make-pbr-material #:base-color-factor (vec3 1.0 0 0)
|
||||||
#:polygon-mode line-polygon-mode)))
|
#:polygon-mode point-polygon-mode)))
|
||||||
|
|
||||||
(define (ustvari-objekt)
|
(define (ustvari-objekt)
|
||||||
(let ((velikost (/ stevec 2000.0))
|
(let ((velikost (/ stevec 2000.0))
|
||||||
(barva (vec3 0.2 0.8 0.4)))
|
(barva (vec3 0.2 0.8 0.4)))
|
||||||
(make-cube velikost
|
(make-cube velikost
|
||||||
(make-pbr-material #:base-color-factor barva
|
(make-pbr-material #:base-color-factor barva
|
||||||
#:polygon-mode line-polygon-mode
|
#:polygon-mode point-polygon-mode
|
||||||
#:metallic-factor 0.1))
|
#:metallic-factor 0.1))
|
||||||
|
|
||||||
;(make-plane velikost
|
;(make-plane velikost
|
||||||
|
|
6
test.js
6
test.js
|
@ -39,9 +39,7 @@ window.camera = camera;
|
||||||
// Polozaj kamere
|
// Polozaj kamere
|
||||||
camera.position.z = 10;
|
camera.position.z = 10;
|
||||||
|
|
||||||
var renderer = new THREE.WebGLRenderer({
|
var renderer = new THREE.WebGLRenderer({ alpha: true });
|
||||||
alpha: true
|
|
||||||
});
|
|
||||||
renderer.setSize(window.innerWidth, window.innerHeight);
|
renderer.setSize(window.innerWidth, window.innerHeight);
|
||||||
|
|
||||||
// Belo ozadje
|
// Belo ozadje
|
||||||
|
@ -505,7 +503,7 @@ var keysPressed = [0, 0, 0, 0];
|
||||||
const getVal = function (msg) {
|
const getVal = function (msg) {
|
||||||
return msg.value;
|
return msg.value;
|
||||||
}
|
}
|
||||||
var prepend = `/ww/0/ww/${izbranKegel}`;
|
var prepend = `/ww/1/ww/${izbranKegel}`;
|
||||||
console.log('prepend!', prepend);
|
console.log('prepend!', prepend);
|
||||||
|
|
||||||
var oscCallbacks = {};
|
var oscCallbacks = {};
|
||||||
|
|
Loading…
Reference in New Issue