Packagelaya.d3.resource.models
Classpublic class Sky
InheritanceSky Inheritance laya.resource.Resource
Subclasses SkyBox, SkyDome

Sky 类用于创建天空的父类,抽象类不允许实例。



Public Properties
 PropertyDefined By
  alphaBlending : Number
获取透明混合度。
Sky
  colorIntensity : Number
获取颜色强度。
Sky
  envDiffuseSHBlue : Float32Array
[write-only]
Sky
  envDiffuseSHGreen : Float32Array
[write-only]
Sky
  envDiffuseSHRed : Float32Array
[write-only]
Sky
  environmentDiffuse : BaseTexture
获取环境漫反射贴图。
Sky
  environmentSpecular : BaseTexture
获取环境高光贴图。
Sky
Public Methods
 MethodDefined By
  
Sky()
创建一个 Sky 实例。
Sky
Public Constants
 ConstantDefined By
  ALPHABLENDING : int = 2
[static]
Sky
  DIFFUSETEXTURE : int = 3
[static]
Sky
  INTENSITY : int = 1
[static]
Sky
  MVPMATRIX : int = 0
[static]
Sky
Property Detail
alphaBlendingproperty
alphaBlending:Number

获取透明混合度。


Implementation
    public function get alphaBlending():Number
    public function set alphaBlending(value:Number):void
colorIntensityproperty 
colorIntensity:Number

获取颜色强度。


Implementation
    public function get colorIntensity():Number
    public function set colorIntensity(value:Number):void
envDiffuseSHBlueproperty 
envDiffuseSHBlue:Float32Array  [write-only]


Implementation
    public function set envDiffuseSHBlue(value:Float32Array):void
envDiffuseSHGreenproperty 
envDiffuseSHGreen:Float32Array  [write-only]


Implementation
    public function set envDiffuseSHGreen(value:Float32Array):void
envDiffuseSHRedproperty 
envDiffuseSHRed:Float32Array  [write-only]


Implementation
    public function set envDiffuseSHRed(value:Float32Array):void
environmentDiffuseproperty 
environmentDiffuse:BaseTexture

获取环境漫反射贴图。


Implementation
    public function get environmentDiffuse():BaseTexture
    public function set environmentDiffuse(value:BaseTexture):void
environmentSpecularproperty 
environmentSpecular:BaseTexture

获取环境高光贴图。


Implementation
    public function get environmentSpecular():BaseTexture
    public function set environmentSpecular(value:BaseTexture):void
Constructor Detail
Sky()Constructor
public function Sky()

创建一个 Sky 实例。

Constant Detail
ALPHABLENDINGConstant
public static const ALPHABLENDING:int = 2

DIFFUSETEXTUREConstant 
public static const DIFFUSETEXTURE:int = 3

INTENSITYConstant 
public static const INTENSITY:int = 1

MVPMATRIXConstant 
public static const MVPMATRIX:int = 0