kopia lustrzana https://github.com/backface/turtlestitch
(re)add color, fix loading
rodzic
b8b022a41e
commit
10c5fa8e0f
|
@ -45,7 +45,15 @@ SpriteMorph.prototype.addStitch = function(x1, y1, x2, y2) {
|
|||
stage.myStitchLines.add(line);
|
||||
*/
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { color: 0x000000 } );
|
||||
//var material = new THREE.LineBasicMaterial( { color: 0x000000 } );
|
||||
var material = new THREE.MeshBasicMaterial({
|
||||
color: new THREE.Color("rgb("+
|
||||
Math.round(stage.drawingColor.r) + "," +
|
||||
Math.round(stage.drawingColor.g) + "," +
|
||||
Math.round(stage.drawingColor.b) + ")" ),
|
||||
side:THREE.DoubleSide,
|
||||
opacity: 1
|
||||
});
|
||||
var geometry = new THREE.Geometry();
|
||||
geometry.vertices = [
|
||||
new THREE.Vector3(x1, y1, 0.0),
|
||||
|
|
1
store.js
1
store.js
|
@ -1456,6 +1456,7 @@ SnapSerializer.prototype.openProject = function (project, ide) {
|
|||
//})
|
||||
|
||||
ide.world().keyboardReceiver = project.stage;
|
||||
ide.stage.initCamera();
|
||||
};
|
||||
|
||||
// SnapSerializer XML-representation of objects:
|
||||
|
|
Ładowanie…
Reference in New Issue