new ShaderFactory(manager)
        Create a new ShaderFactory object - this is done automatically by Palette.Manager.
    
    
    
    
    
        Parameters:
| Name | Type | Description | 
|---|---|---|
manager | 
            
            Palette.Manager | The manager object to place generated shaders into. | 
- Source:
 
Members
- 
    
<protected, readonly> manager :Palette.Manager
 - 
    
    An object reference to the parent Palette.Manager.
Type:
- Source:
 
 
Methods
- 
    
addShader(shader)
 - 
    
    Begin the shader construction process.
Parameters:
Name Type Description shaderstring | Palette.Shader | Object URL, JSON, Shader Source Object or Palette.Shader. - Source:
 
 - 
    
<protected> createShaderObject(sourceObject) → {Palette.Shader|null}
 - 
    
    Create a shader from a source object.
Parameters:
Name Type Description sourceObjectobject Either a list of shaders or a single shader object is valid. - Source:
 
Returns:
Returns a Palette.Shader if the Source Object was not a list. If it was a list, it adds all the children instead.- Type
 - Palette.Shader | null
 
 - 
    
<protected> downloadFromURL(url)
 - 
    
    Download a file from the supplied URL, before adding it to the manager.
Parameters:
Name Type Description urlstring URL corresponding to a Shader Source Object JSON file. - Source:
 
 - 
    
<protected> establishType(shader) → {number}
 - 
    
    Determine the type of shader reference passed to the factory.
Parameters:
Name Type Description shaderstring | Palette.Shader URL, JSON or Palette.Shader. - Source:
 
Returns:
Either Palette.ShaderFactory.SOURCE_OBJECT, .JSON, .URL or .SHADER_OBJECT.- Type
 - number
 
 - 
    
<protected> registerShader(shaderObject)
 - 
    
    Add a shader directly into the manager's storage for future access.
Parameters:
Name Type Description shaderObjectPalette.Shader Compiled shader object to store in the Palette.Manager. - Source: