more versions added

This commit is contained in:
Tubix
2024-10-05 12:11:16 +01:00
parent 413f563f33
commit c32c7e8c34
7661 changed files with 1343635 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.alternativagame.engine3d.material {
public class PolygonMaterial extends Material {
// Двусторонний материал
public var twoSided:Boolean;
// Клон
override public function clone():Material {
var res:PolygonMaterial = new PolygonMaterial();
cloneParams(res);
return res;
}
// Клонировать параметры
override protected function cloneParams(material:*):void {
var mat:PolygonMaterial = PolygonMaterial(material);
super.cloneParams(mat);
mat.twoSided = twoSided;
}
}
}