Package | away3d.materials.compilation |
Class | public class ShaderCompiler |
Inheritance | ShaderCompiler Object |
Subclasses | LightingShaderCompiler, SuperShaderCompiler |
Property | Defined By | ||
---|---|---|---|
alphaPremultiplied : Boolean | ShaderCompiler | ||
animatableAttributes : Vector.<String> [read-only] | ShaderCompiler | ||
animateUVs : Boolean | ShaderCompiler | ||
animationTargetRegisters : Vector.<String> [read-only] | ShaderCompiler | ||
cameraPositionIndex : int [read-only] | ShaderCompiler | ||
commonsDataIndex : int [read-only] | ShaderCompiler | ||
diffuseLightSources : uint | ShaderCompiler | ||
fragmentCode : String [read-only] | ShaderCompiler | ||
fragmentLightCode : String [read-only] | ShaderCompiler | ||
framentPostLightCode : String [read-only] | ShaderCompiler | ||
lightFragmentConstantIndex : int [read-only] | ShaderCompiler | ||
lightProbeDiffuseIndices : Vector.<uint> [read-only] | ShaderCompiler | ||
lightProbeSpecularIndices : Vector.<uint> [read-only] | ShaderCompiler | ||
methodSetup : ShaderMethodSetup | ShaderCompiler | ||
needUVAnimation : Boolean [read-only] | ShaderCompiler | ||
normalBufferIndex : int [read-only] | ShaderCompiler | ||
numDirectionalLights : uint | ShaderCompiler | ||
numLightProbes : uint | ShaderCompiler | ||
numPointLights : uint | ShaderCompiler | ||
numUsedFragmentConstants : uint [read-only] | ShaderCompiler | ||
numUsedStreams : uint [read-only] | ShaderCompiler | ||
numUsedTextures : uint [read-only] | ShaderCompiler | ||
numUsedVaryings : uint [read-only] | ShaderCompiler | ||
numUsedVertexConstants : uint [read-only] | ShaderCompiler | ||
preserveAlpha : Boolean | ShaderCompiler | ||
probeWeightsIndex : int [read-only] | ShaderCompiler | ||
sceneMatrixIndex : int [read-only] | ShaderCompiler | ||
sceneNormalMatrixIndex : int [read-only] | ShaderCompiler | ||
secondaryUVBufferIndex : int [read-only] | ShaderCompiler | ||
shadedTarget : String [read-only] | ShaderCompiler | ||
specularLightSources : uint | ShaderCompiler | ||
tangentBufferIndex : int [read-only] | ShaderCompiler | ||
usesNormals : Boolean [read-only] | ShaderCompiler | ||
usingSpecularMethod : Boolean [read-only] | ShaderCompiler | ||
uvBufferIndex : int [read-only] | ShaderCompiler | ||
UVSource : String [read-only] | ShaderCompiler | ||
UVTarget : String [read-only] | ShaderCompiler | ||
uvTransformIndex : int [read-only] | ShaderCompiler | ||
vertexCode : String [read-only] | ShaderCompiler | ||
vertexConstantsOffset : uint [read-only] | ShaderCompiler |
Property | Defined By | ||
---|---|---|---|
_alphaPremultiplied : Boolean | ShaderCompiler | ||
_animatableAttributes : Vector.<String> | ShaderCompiler | ||
_animateUVs : Boolean | ShaderCompiler | ||
_animationTargetRegisters : Vector.<String> | ShaderCompiler | ||
_cameraPositionIndex : int = -1 | ShaderCompiler | ||
_combinedLightSources : uint | ShaderCompiler | ||
_dependencyCounter : MethodDependencyCounter | ShaderCompiler | ||
_diffuseLightSources : uint | ShaderCompiler | ||
_fragmentCode : String | ShaderCompiler | ||
_fragmentConstantData : Vector.<Number> | ShaderCompiler | ||
_fragmentLightCode : String | ShaderCompiler | ||
_framentPostLightCode : String | ShaderCompiler | ||
_lightFragmentConstantIndex : int = -1 | ShaderCompiler | ||
_lightProbeDiffuseIndices : Vector.<uint> | ShaderCompiler | ||
_lightProbeSpecularIndices : Vector.<uint> | ShaderCompiler | ||
_methodSetup : ShaderMethodSetup | ShaderCompiler | ||
_mipmap : Boolean | ShaderCompiler | ||
_needUVAnimation : Boolean | ShaderCompiler | ||
_normalBufferIndex : int = -1 | ShaderCompiler | ||
_numDirectionalLights : uint | ShaderCompiler | ||
_numLightProbes : uint | ShaderCompiler | ||
_numLights : int | ShaderCompiler | ||
_numPointLights : uint | ShaderCompiler | ||
_numProbeRegisters : Number | ShaderCompiler | ||
_preserveAlpha : Boolean = true | ShaderCompiler | ||
_probeWeightsIndex : int = -1 | ShaderCompiler | ||
_registerCache : ShaderRegisterCache | ShaderCompiler | ||
_repeat : Boolean | ShaderCompiler | ||
_sceneMatrixIndex : int = -1 | ShaderCompiler | ||
_sceneNormalMatrixIndex : int = -1 | ShaderCompiler | ||
_secondaryUVBufferIndex : int = -1 | ShaderCompiler | ||
_sharedRegisters : ShaderRegisterData | ShaderCompiler | ||
_smooth : Boolean | ShaderCompiler | ||
_specularLightSources : uint | ShaderCompiler | ||
_tangentBufferIndex : int = -1 | ShaderCompiler | ||
_usingSpecularMethod : Boolean | ShaderCompiler | ||
_uvBufferIndex : int = -1 | ShaderCompiler | ||
_UVSource : String | ShaderCompiler | ||
_UVTarget : String | ShaderCompiler | ||
_uvTransformIndex : int = -1 | ShaderCompiler | ||
_vertexCode : String | ShaderCompiler | ||
_vertexConstantData : Vector.<Number> | ShaderCompiler | ||
_vertexConstantsOffset : uint | ShaderCompiler |
Method | Defined By | ||
---|---|---|---|
ShaderCompiler | |||
compile():void | ShaderCompiler | ||
dispose():void | ShaderCompiler | ||
setConstantDataBuffers(vertexConstantData:Vector.<Number>, fragmentConstantData:Vector.<Number>):void | ShaderCompiler | ||
setTextureSampling(smooth:Boolean, repeat:Boolean, mipmap:Boolean):void | ShaderCompiler |
Method | Defined By | ||
---|---|---|---|
calculateDependencies():void | ShaderCompiler | ||
compileGlobalPositionCode():void | ShaderCompiler | ||
compileLightingCode():void | ShaderCompiler | ||
compileMethods():void | ShaderCompiler | ||
compileMethodsCode():void | ShaderCompiler | ||
compileNormalCode():void | ShaderCompiler | ||
compileViewDirCode():void | ShaderCompiler | ||
initLightData():void | ShaderCompiler | ||
initRegisterIndices():void | ShaderCompiler | ||
usesLights():Boolean | ShaderCompiler | ||
usesLightsForDiffuse():Boolean | ShaderCompiler | ||
usesLightsForSpecular():Boolean | ShaderCompiler | ||
usesProbes():Boolean | ShaderCompiler | ||
usesProbesForDiffuse():Boolean | ShaderCompiler | ||
usesProbesForSpecular():Boolean | ShaderCompiler |
_alphaPremultiplied | property |
protected var _alphaPremultiplied:Boolean
_animatableAttributes | property |
protected var _animatableAttributes:Vector.<String>
_animateUVs | property |
protected var _animateUVs:Boolean
_animationTargetRegisters | property |
protected var _animationTargetRegisters:Vector.<String>
_cameraPositionIndex | property |
protected var _cameraPositionIndex:int = -1
_combinedLightSources | property |
protected var _combinedLightSources:uint
_dependencyCounter | property |
protected var _dependencyCounter:MethodDependencyCounter
_diffuseLightSources | property |
protected var _diffuseLightSources:uint
_fragmentCode | property |
protected var _fragmentCode:String
_fragmentConstantData | property |
protected var _fragmentConstantData:Vector.<Number>
_fragmentLightCode | property |
protected var _fragmentLightCode:String
_framentPostLightCode | property |
protected var _framentPostLightCode:String
_lightFragmentConstantIndex | property |
protected var _lightFragmentConstantIndex:int = -1
_lightProbeDiffuseIndices | property |
protected var _lightProbeDiffuseIndices:Vector.<uint>
_lightProbeSpecularIndices | property |
protected var _lightProbeSpecularIndices:Vector.<uint>
_methodSetup | property |
protected var _methodSetup:ShaderMethodSetup
_mipmap | property |
protected var _mipmap:Boolean
_needUVAnimation | property |
protected var _needUVAnimation:Boolean
_normalBufferIndex | property |
protected var _normalBufferIndex:int = -1
_numDirectionalLights | property |
protected var _numDirectionalLights:uint
_numLightProbes | property |
protected var _numLightProbes:uint
_numLights | property |
protected var _numLights:int
_numPointLights | property |
protected var _numPointLights:uint
_numProbeRegisters | property |
protected var _numProbeRegisters:Number
_preserveAlpha | property |
protected var _preserveAlpha:Boolean = true
_probeWeightsIndex | property |
protected var _probeWeightsIndex:int = -1
_registerCache | property |
protected var _registerCache:ShaderRegisterCache
_repeat | property |
protected var _repeat:Boolean
_sceneMatrixIndex | property |
protected var _sceneMatrixIndex:int = -1
_sceneNormalMatrixIndex | property |
protected var _sceneNormalMatrixIndex:int = -1
_secondaryUVBufferIndex | property |
protected var _secondaryUVBufferIndex:int = -1
_sharedRegisters | property |
protected var _sharedRegisters:ShaderRegisterData
_smooth | property |
protected var _smooth:Boolean
_specularLightSources | property |
protected var _specularLightSources:uint
_tangentBufferIndex | property |
protected var _tangentBufferIndex:int = -1
_usingSpecularMethod | property |
protected var _usingSpecularMethod:Boolean
_uvBufferIndex | property |
protected var _uvBufferIndex:int = -1
_UVSource | property |
protected var _UVSource:String
_UVTarget | property |
protected var _UVTarget:String
_uvTransformIndex | property |
protected var _uvTransformIndex:int = -1
_vertexCode | property |
protected var _vertexCode:String
_vertexConstantData | property |
protected var _vertexConstantData:Vector.<Number>
_vertexConstantsOffset | property |
protected var _vertexConstantsOffset:uint
alphaPremultiplied | property |
alphaPremultiplied:Boolean
public function get alphaPremultiplied():Boolean
public function set alphaPremultiplied(value:Boolean):void
animatableAttributes | property |
animatableAttributes:Vector.<String>
[read-only] public function get animatableAttributes():Vector.<String>
animateUVs | property |
animateUVs:Boolean
public function get animateUVs():Boolean
public function set animateUVs(value:Boolean):void
animationTargetRegisters | property |
animationTargetRegisters:Vector.<String>
[read-only] public function get animationTargetRegisters():Vector.<String>
cameraPositionIndex | property |
cameraPositionIndex:int
[read-only] public function get cameraPositionIndex():int
commonsDataIndex | property |
commonsDataIndex:int
[read-only] public function get commonsDataIndex():int
diffuseLightSources | property |
diffuseLightSources:uint
public function get diffuseLightSources():uint
public function set diffuseLightSources(value:uint):void
fragmentCode | property |
fragmentCode:String
[read-only] public function get fragmentCode():String
fragmentLightCode | property |
fragmentLightCode:String
[read-only] public function get fragmentLightCode():String
framentPostLightCode | property |
framentPostLightCode:String
[read-only] public function get framentPostLightCode():String
lightFragmentConstantIndex | property |
lightFragmentConstantIndex:int
[read-only] public function get lightFragmentConstantIndex():int
lightProbeDiffuseIndices | property |
lightProbeDiffuseIndices:Vector.<uint>
[read-only] public function get lightProbeDiffuseIndices():Vector.<uint>
lightProbeSpecularIndices | property |
lightProbeSpecularIndices:Vector.<uint>
[read-only] public function get lightProbeSpecularIndices():Vector.<uint>
methodSetup | property |
methodSetup:ShaderMethodSetup
public function get methodSetup():ShaderMethodSetup
public function set methodSetup(value:ShaderMethodSetup):void
needUVAnimation | property |
needUVAnimation:Boolean
[read-only] public function get needUVAnimation():Boolean
normalBufferIndex | property |
normalBufferIndex:int
[read-only] public function get normalBufferIndex():int
numDirectionalLights | property |
numDirectionalLights:uint
public function get numDirectionalLights():uint
public function set numDirectionalLights(value:uint):void
numLightProbes | property |
numLightProbes:uint
public function get numLightProbes():uint
public function set numLightProbes(value:uint):void
numPointLights | property |
numPointLights:uint
public function get numPointLights():uint
public function set numPointLights(value:uint):void
numUsedFragmentConstants | property |
numUsedFragmentConstants:uint
[read-only] public function get numUsedFragmentConstants():uint
numUsedStreams | property |
numUsedStreams:uint
[read-only] public function get numUsedStreams():uint
numUsedTextures | property |
numUsedTextures:uint
[read-only] public function get numUsedTextures():uint
numUsedVaryings | property |
numUsedVaryings:uint
[read-only] public function get numUsedVaryings():uint
numUsedVertexConstants | property |
numUsedVertexConstants:uint
[read-only] public function get numUsedVertexConstants():uint
preserveAlpha | property |
preserveAlpha:Boolean
public function get preserveAlpha():Boolean
public function set preserveAlpha(value:Boolean):void
probeWeightsIndex | property |
probeWeightsIndex:int
[read-only] public function get probeWeightsIndex():int
sceneMatrixIndex | property |
sceneMatrixIndex:int
[read-only] public function get sceneMatrixIndex():int
sceneNormalMatrixIndex | property |
sceneNormalMatrixIndex:int
[read-only] public function get sceneNormalMatrixIndex():int
secondaryUVBufferIndex | property |
secondaryUVBufferIndex:int
[read-only] public function get secondaryUVBufferIndex():int
shadedTarget | property |
shadedTarget:String
[read-only] public function get shadedTarget():String
specularLightSources | property |
specularLightSources:uint
public function get specularLightSources():uint
public function set specularLightSources(value:uint):void
tangentBufferIndex | property |
tangentBufferIndex:int
[read-only] public function get tangentBufferIndex():int
usesNormals | property |
usesNormals:Boolean
[read-only] public function get usesNormals():Boolean
usingSpecularMethod | property |
usingSpecularMethod:Boolean
[read-only] public function get usingSpecularMethod():Boolean
uvBufferIndex | property |
uvBufferIndex:int
[read-only] public function get uvBufferIndex():int
UVSource | property |
UVSource:String
[read-only] public function get UVSource():String
UVTarget | property |
UVTarget:String
[read-only] public function get UVTarget():String
uvTransformIndex | property |
uvTransformIndex:int
[read-only] public function get uvTransformIndex():int
vertexCode | property |
vertexCode:String
[read-only] public function get vertexCode():String
vertexConstantsOffset | property |
vertexConstantsOffset:uint
[read-only] public function get vertexConstantsOffset():uint
ShaderCompiler | () | Constructor |
public function ShaderCompiler()
calculateDependencies | () | method |
protected function calculateDependencies():void
compile | () | method |
public function compile():void
compileGlobalPositionCode | () | method |
protected function compileGlobalPositionCode():void
compileLightingCode | () | method |
protected function compileLightingCode():void
compileMethods | () | method |
protected function compileMethods():void
compileMethodsCode | () | method |
protected function compileMethodsCode():void
compileNormalCode | () | method |
protected function compileNormalCode():void
compileViewDirCode | () | method |
protected function compileViewDirCode():void
dispose | () | method |
public function dispose():void
initLightData | () | method |
protected function initLightData():void
initRegisterIndices | () | method |
protected function initRegisterIndices():void
setConstantDataBuffers | () | method |
public function setConstantDataBuffers(vertexConstantData:Vector.<Number>, fragmentConstantData:Vector.<Number>):void
Parameters
vertexConstantData:Vector.<Number> | |
fragmentConstantData:Vector.<Number> |
setTextureSampling | () | method |
public function setTextureSampling(smooth:Boolean, repeat:Boolean, mipmap:Boolean):void
Parameters
smooth:Boolean | |
repeat:Boolean | |
mipmap:Boolean |
usesLights | () | method |
protected function usesLights():Boolean
ReturnsBoolean |
usesLightsForDiffuse | () | method |
protected function usesLightsForDiffuse():Boolean
ReturnsBoolean |
usesLightsForSpecular | () | method |
protected function usesLightsForSpecular():Boolean
ReturnsBoolean |
usesProbes | () | method |
protected function usesProbes():Boolean
ReturnsBoolean |
usesProbesForDiffuse | () | method |
protected function usesProbesForDiffuse():Boolean
ReturnsBoolean |
usesProbesForSpecular | () | method |
protected function usesProbesForSpecular():Boolean
ReturnsBoolean |