mirror of
https://github.com/MapMakersAndProgrammers/alternativa3d-archive.git
synced 2025-10-27 18:29:07 -07:00
more versions added
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.alternativagame.engine3d.object.light {
|
||||
import com.alternativagame.engine3d.engine3d;
|
||||
import com.alternativagame.engine3d.object.Object3D;
|
||||
import com.alternativagame.type.RGB;
|
||||
import com.alternativagame.type.Vector;
|
||||
|
||||
public class Ambient3D extends Light3D {
|
||||
|
||||
use namespace engine3d;
|
||||
|
||||
public function Ambient3D(color:RGB = null) {
|
||||
super(color);
|
||||
}
|
||||
|
||||
// Освещение в заданной точке
|
||||
engine3d function getLightColor(coords:Vector, normal:Vector):RGB {
|
||||
return color;
|
||||
}
|
||||
|
||||
// Клон
|
||||
override public function clone():Object3D {
|
||||
var res:Ambient3D = new Ambient3D();
|
||||
cloneParams(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user