ambientlight.as
来自「著名的flash 3d引擎 away 3d的源代码」· AS 代码 · 共 31 行
AS
31 行
package away3d.core.light{ import away3d.lights.*; import flash.display.*; /** * Ambient light primitive */ public class AmbientLight extends LightPrimitive { /** * A reference to the <code>AmbientLight3D</code> object used by the light primitive. */ public var light:AmbientLight3D; /** * Updates the bitmapData object used as the lightmap for ambient light shading. * * @param ambient The coefficient for ambient light intensity. */ public function updateAmbientBitmap(ambient:Number):void { this.ambient = ambient; ambientBitmap = new BitmapData(256, 256, false, int(ambient*red << 16) | int(ambient*green << 8) | int(ambient*blue)); ambientBitmap.lock(); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?