|
@@ -16292,7 +16292,6 @@ var BABYLON;
|
|
this._geometries = new Array();
|
|
this._geometries = new Array();
|
|
this.materials = new Array();
|
|
this.materials = new Array();
|
|
this.multiMaterials = new Array();
|
|
this.multiMaterials = new Array();
|
|
- this.defaultMaterial = new BABYLON.StandardMaterial("default material", this);
|
|
|
|
// Textures
|
|
// Textures
|
|
this.texturesEnabled = true;
|
|
this.texturesEnabled = true;
|
|
this.textures = new Array();
|
|
this.textures = new Array();
|
|
@@ -16468,6 +16467,16 @@ var BABYLON;
|
|
enumerable: true,
|
|
enumerable: true,
|
|
configurable: true
|
|
configurable: true
|
|
});
|
|
});
|
|
|
|
+ Object.defineProperty(Scene.prototype, "defaultMaterial", {
|
|
|
|
+ get: function () {
|
|
|
|
+ if (!this._defaultMaterial) {
|
|
|
|
+ this._defaultMaterial = new BABYLON.StandardMaterial("default material", this);
|
|
|
|
+ }
|
|
|
|
+ return this._defaultMaterial;
|
|
|
|
+ },
|
|
|
|
+ enumerable: true,
|
|
|
|
+ configurable: true
|
|
|
|
+ });
|
|
Object.defineProperty(Scene.prototype, "debugLayer", {
|
|
Object.defineProperty(Scene.prototype, "debugLayer", {
|
|
// Properties
|
|
// Properties
|
|
get: function () {
|
|
get: function () {
|
|
@@ -25255,7 +25264,12 @@ var BABYLON;
|
|
this._fillMode = Material.TriangleFillMode;
|
|
this._fillMode = Material.TriangleFillMode;
|
|
this.id = name;
|
|
this.id = name;
|
|
this._scene = scene;
|
|
this._scene = scene;
|
|
- this.sideOrientation = Material.CounterClockWiseSideOrientation;
|
|
|
|
|
|
+ if (scene.useRightHandedSystem) {
|
|
|
|
+ this.sideOrientation = Material.ClockWiseSideOrientation;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.sideOrientation = Material.CounterClockWiseSideOrientation;
|
|
|
|
+ }
|
|
if (!doNotAdd) {
|
|
if (!doNotAdd) {
|
|
scene.materials.push(this);
|
|
scene.materials.push(this);
|
|
}
|
|
}
|