mirror of
https://github.com/MapMakersAndProgrammers/alternativa3d-archive.git
synced 2025-10-27 10:19:08 -07:00
more versions added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user