C# Class SSTUTools.SSTUAssetBundleShaderLoader

Mostrar archivo Open project: shadowmage45/SSTULabs Class Usage Examples

Public Methods

Method Description
Load ( Shader>.Dictionary shaderDict ) : void
applyToModelDatabase ( ) : void
updateMaterialProperties ( Material m, ShaderProperty props ) : void
updateModelMaterial ( Transform root, string excludeMeshes, string meshes, string shader, string diffuse, string normal, string specular, string emissive, string occlusion, ShaderProperty props ) : void
updateRenderer ( Renderer rend, string shader, string diffuse, string normal, string specular, string emissive, string occlusion, ShaderProperty props ) : void

Private Methods

Method Description
CreateWWW ( string bundlePath ) : WWW

Creates a WWW URL reference for the input file-path

Method Details

Load() public static method

public static Load ( Shader>.Dictionary shaderDict ) : void
shaderDict Shader>.Dictionary
return void

applyToModelDatabase() public static method

public static applyToModelDatabase ( ) : void
return void

updateMaterialProperties() public static method

public static updateMaterialProperties ( Material m, ShaderProperty props ) : void
m UnityEngine.Material
props ShaderProperty
return void

updateModelMaterial() public static method

public static updateModelMaterial ( Transform root, string excludeMeshes, string meshes, string shader, string diffuse, string normal, string specular, string emissive, string occlusion, ShaderProperty props ) : void
root UnityEngine.Transform
excludeMeshes string
meshes string
shader string
diffuse string
normal string
specular string
emissive string
occlusion string
props ShaderProperty
return void

updateRenderer() public static method

public static updateRenderer ( Renderer rend, string shader, string diffuse, string normal, string specular, string emissive, string occlusion, ShaderProperty props ) : void
rend UnityEngine.Renderer
shader string
diffuse string
normal string
specular string
emissive string
occlusion string
props ShaderProperty
return void