Packageaway3d.materials.compilation
Classpublic class LightingShaderCompiler
InheritanceLightingShaderCompiler Inheritance ShaderCompiler Inheritance Object



Public Properties
 PropertyDefined By
 InheritedalphaPremultiplied : Boolean
ShaderCompiler
 InheritedanimatableAttributes : Vector.<String>
[read-only]
ShaderCompiler
 InheritedanimateUVs : Boolean
ShaderCompiler
 InheritedanimationTargetRegisters : Vector.<String>
[read-only]
ShaderCompiler
 InheritedcameraPositionIndex : int
[read-only]
ShaderCompiler
 InheritedcommonsDataIndex : int
[read-only]
ShaderCompiler
 InheriteddiffuseLightSources : uint
ShaderCompiler
  _dirLightFragmentConstants : Vector.<ShaderRegisterElement>
LightingShaderCompiler
  _dirLightVertexConstants : Vector.<ShaderRegisterElement>
LightingShaderCompiler
 InheritedfragmentCode : String
[read-only]
ShaderCompiler
 InheritedfragmentLightCode : String
[read-only]
ShaderCompiler
 InheritedframentPostLightCode : String
[read-only]
ShaderCompiler
 InheritedlightFragmentConstantIndex : int
[read-only]
ShaderCompiler
 InheritedlightProbeDiffuseIndices : Vector.<uint>
[read-only]
ShaderCompiler
 InheritedlightProbeSpecularIndices : Vector.<uint>
[read-only]
ShaderCompiler
  lightVertexConstantIndex : int
[read-only]
LightingShaderCompiler
 InheritedmethodSetup : ShaderMethodSetup
ShaderCompiler
 InheritedneedUVAnimation : Boolean
[read-only]
ShaderCompiler
 InheritednormalBufferIndex : int
[read-only]
ShaderCompiler
 InheritednumDirectionalLights : uint
ShaderCompiler
 InheritednumLightProbes : uint
ShaderCompiler
 InheritednumPointLights : uint
ShaderCompiler
 InheritednumUsedFragmentConstants : uint
[read-only]
ShaderCompiler
 InheritednumUsedStreams : uint
[read-only]
ShaderCompiler
 InheritednumUsedTextures : uint
[read-only]
ShaderCompiler
 InheritednumUsedVaryings : uint
[read-only]
ShaderCompiler
 InheritednumUsedVertexConstants : uint
[read-only]
ShaderCompiler
  _pointLightFragmentConstants : Vector.<ShaderRegisterElement>
LightingShaderCompiler
  _pointLightVertexConstants : Vector.<ShaderRegisterElement>
LightingShaderCompiler
 InheritedpreserveAlpha : Boolean
ShaderCompiler
 InheritedprobeWeightsIndex : int
[read-only]
ShaderCompiler
 InheritedsceneMatrixIndex : int
[read-only]
ShaderCompiler
 InheritedsceneNormalMatrixIndex : int
[read-only]
ShaderCompiler
 InheritedsecondaryUVBufferIndex : int
[read-only]
ShaderCompiler
 InheritedshadedTarget : String
[read-only]
ShaderCompiler
 InheritedspecularLightSources : uint
ShaderCompiler
 InheritedtangentBufferIndex : int
[read-only]
ShaderCompiler
  tangentSpace : Boolean
[read-only]
LightingShaderCompiler
 InheritedusesNormals : Boolean
[read-only]
ShaderCompiler
 InheritedusingSpecularMethod : Boolean
[read-only]
ShaderCompiler
 InheriteduvBufferIndex : int
[read-only]
ShaderCompiler
 InheritedUVSource : String
[read-only]
ShaderCompiler
 InheritedUVTarget : String
[read-only]
ShaderCompiler
 InheriteduvTransformIndex : int
[read-only]
ShaderCompiler
 InheritedvertexCode : String
[read-only]
ShaderCompiler
 InheritedvertexConstantsOffset : uint
[read-only]
ShaderCompiler
Protected Properties
 PropertyDefined By
 Inherited_alphaPremultiplied : Boolean
ShaderCompiler
 Inherited_animatableAttributes : Vector.<String>
ShaderCompiler
 Inherited_animateUVs : Boolean
ShaderCompiler
 Inherited_animationTargetRegisters : Vector.<String>
ShaderCompiler
 Inherited_cameraPositionIndex : int = -1
ShaderCompiler
 Inherited_combinedLightSources : uint
ShaderCompiler
 Inherited_dependencyCounter : MethodDependencyCounter
ShaderCompiler
 Inherited_diffuseLightSources : uint
ShaderCompiler
 Inherited_fragmentCode : String
ShaderCompiler
 Inherited_fragmentConstantData : Vector.<Number>
ShaderCompiler
 Inherited_fragmentLightCode : String
ShaderCompiler
 Inherited_framentPostLightCode : String
ShaderCompiler
 Inherited_lightFragmentConstantIndex : int = -1
ShaderCompiler
 Inherited_lightProbeDiffuseIndices : Vector.<uint>
ShaderCompiler
 Inherited_lightProbeSpecularIndices : Vector.<uint>
ShaderCompiler
 Inherited_methodSetup : ShaderMethodSetup
ShaderCompiler
 Inherited_mipmap : Boolean
ShaderCompiler
 Inherited_needUVAnimation : Boolean
ShaderCompiler
 Inherited_normalBufferIndex : int = -1
ShaderCompiler
 Inherited_numDirectionalLights : uint
ShaderCompiler
 Inherited_numLightProbes : uint
ShaderCompiler
 Inherited_numLights : int
ShaderCompiler
 Inherited_numPointLights : uint
ShaderCompiler
 Inherited_numProbeRegisters : Number
ShaderCompiler
 Inherited_preserveAlpha : Boolean = true
ShaderCompiler
 Inherited_probeWeightsIndex : int = -1
ShaderCompiler
 Inherited_registerCache : ShaderRegisterCache
ShaderCompiler
 Inherited_repeat : Boolean
ShaderCompiler
 Inherited_sceneMatrixIndex : int = -1
ShaderCompiler
 Inherited_sceneNormalMatrixIndex : int = -1
ShaderCompiler
 Inherited_secondaryUVBufferIndex : int = -1
ShaderCompiler
 Inherited_sharedRegisters : ShaderRegisterData
ShaderCompiler
 Inherited_smooth : Boolean
ShaderCompiler
 Inherited_specularLightSources : uint
ShaderCompiler
 Inherited_tangentBufferIndex : int = -1
ShaderCompiler
 Inherited_usingSpecularMethod : Boolean
ShaderCompiler
 Inherited_uvBufferIndex : int = -1
ShaderCompiler
 Inherited_UVSource : String
ShaderCompiler
 Inherited_UVTarget : String
ShaderCompiler
 Inherited_uvTransformIndex : int = -1
ShaderCompiler
 Inherited_vertexCode : String
ShaderCompiler
 Inherited_vertexConstantData : Vector.<Number>
ShaderCompiler
 Inherited_vertexConstantsOffset : uint
ShaderCompiler
Public Methods
 MethodDefined By
  
LightingShaderCompiler
 Inherited
compile():void
ShaderCompiler
 Inherited
dispose():void
ShaderCompiler
 Inherited
setConstantDataBuffers(vertexConstantData:Vector.<Number>, fragmentConstantData:Vector.<Number>):void
ShaderCompiler
 Inherited
setTextureSampling(smooth:Boolean, repeat:Boolean, mipmap:Boolean):void
ShaderCompiler
Protected Methods
 MethodDefined By
  
[override] Calculates register dependencies for commonly used data.
LightingShaderCompiler
 Inherited
ShaderCompiler
  
[override]
LightingShaderCompiler
 Inherited
ShaderCompiler
  
[override]
LightingShaderCompiler
  
[override]
LightingShaderCompiler
  
[override]
LightingShaderCompiler
  
LightingShaderCompiler
  
[override]
LightingShaderCompiler
  
[override]
LightingShaderCompiler
 Inherited
usesLights():Boolean
ShaderCompiler
 Inherited
ShaderCompiler
 Inherited
ShaderCompiler
 Inherited
usesProbes():Boolean
ShaderCompiler
 Inherited
ShaderCompiler
 Inherited
ShaderCompiler
Property Detail
_dirLightFragmentConstantsproperty
public var _dirLightFragmentConstants:Vector.<ShaderRegisterElement>

_dirLightVertexConstantsproperty 
public var _dirLightVertexConstants:Vector.<ShaderRegisterElement>

_pointLightFragmentConstantsproperty 
public var _pointLightFragmentConstants:Vector.<ShaderRegisterElement>

_pointLightVertexConstantsproperty 
public var _pointLightVertexConstants:Vector.<ShaderRegisterElement>

lightVertexConstantIndexproperty 
lightVertexConstantIndex:int  [read-only]


Implementation
    public function get lightVertexConstantIndex():int
tangentSpaceproperty 
tangentSpace:Boolean  [read-only]


Implementation
    public function get tangentSpace():Boolean
Constructor Detail
LightingShaderCompiler()Constructor
public function LightingShaderCompiler()



Method Detail
calculateDependencies()method
override protected function calculateDependencies():void

Calculates register dependencies for commonly used data.

compileLightingCode()method 
override protected function compileLightingCode():void

compileMethodsCode()method 
override protected function compileMethodsCode():void

compileNormalCode()method 
override protected function compileNormalCode():void

compileViewDirCode()method 
override protected function compileViewDirCode():void

createNormalRegisters()method 
protected function createNormalRegisters():void

initLightData()method 
override protected function initLightData():void

initRegisterIndices()method 
override protected function initRegisterIndices():void