📄 ambientlight.as
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -