C# Class UnityEngine.Shader

Inheritance: UnityEngine.Object
Show file Open project: randomize/VimConfig Class Usage Examples

Private Properties

Property Type Description
FindBuiltin Shader
INTERNAL_CALL_SetGlobalColor void
INTERNAL_CALL_SetGlobalColor void
INTERNAL_CALL_SetGlobalMatrix void
INTERNAL_CALL_SetGlobalMatrix void
IsKeywordEnabled bool
SetGlobalFloat void
SetGlobalTexture void

Public Methods

Method Description
DisableKeyword ( string keyword ) : void
EnableKeyword ( string keyword ) : void
Find ( string name ) : Shader
PropertyToID ( string name ) : int
SetGlobalBuffer ( string propertyName, ComputeBuffer buffer ) : void
SetGlobalColor ( int nameID, Color color ) : void
SetGlobalColor ( string propertyName, Color color ) : void
SetGlobalFloat ( string propertyName, float value ) : void
SetGlobalInt ( int nameID, int value ) : void
SetGlobalInt ( string propertyName, int value ) : void
SetGlobalMatrix ( int nameID, Matrix4x4 mat ) : void
SetGlobalMatrix ( string propertyName, Matrix4x4 mat ) : void
SetGlobalTexGenMode ( string propertyName, TexGenMode mode ) : void
SetGlobalTexture ( string propertyName, Texture tex ) : void
SetGlobalTextureMatrixName ( string propertyName, string matrixName ) : void
SetGlobalVector ( int nameID, Vector4 vec ) : void
SetGlobalVector ( string propertyName, Vector4 vec ) : void
Shader ( )
WarmupAllShaders ( ) : void

Private Methods

Method Description
FindBuiltin ( string name ) : Shader
INTERNAL_CALL_SetGlobalColor ( int nameID, Color &color ) : void
INTERNAL_CALL_SetGlobalColor ( string propertyName, Color &color ) : void
INTERNAL_CALL_SetGlobalMatrix ( int nameID, Matrix4x4 &mat ) : void
INTERNAL_CALL_SetGlobalMatrix ( string propertyName, Matrix4x4 &mat ) : void
IsKeywordEnabled ( string keyword ) : bool
SetGlobalFloat ( int nameID, float value ) : void
SetGlobalTexture ( int nameID, Texture tex ) : void

Method Details

DisableKeyword() public static method

public static DisableKeyword ( string keyword ) : void
keyword string
return void

EnableKeyword() public static method

public static EnableKeyword ( string keyword ) : void
keyword string
return void

Find() public static method

public static Find ( string name ) : Shader
name string
return Shader

PropertyToID() public static method

public static PropertyToID ( string name ) : int
name string
return int

SetGlobalBuffer() public static method

public static SetGlobalBuffer ( string propertyName, ComputeBuffer buffer ) : void
propertyName string
buffer ComputeBuffer
return void

SetGlobalColor() public static method

public static SetGlobalColor ( int nameID, Color color ) : void
nameID int
color Color
return void

SetGlobalColor() public static method

public static SetGlobalColor ( string propertyName, Color color ) : void
propertyName string
color Color
return void

SetGlobalFloat() public static method

public static SetGlobalFloat ( string propertyName, float value ) : void
propertyName string
value float
return void

SetGlobalInt() public static method

public static SetGlobalInt ( int nameID, int value ) : void
nameID int
value int
return void

SetGlobalInt() public static method

public static SetGlobalInt ( string propertyName, int value ) : void
propertyName string
value int
return void

SetGlobalMatrix() public static method

public static SetGlobalMatrix ( int nameID, Matrix4x4 mat ) : void
nameID int
mat Matrix4x4
return void

SetGlobalMatrix() public static method

public static SetGlobalMatrix ( string propertyName, Matrix4x4 mat ) : void
propertyName string
mat Matrix4x4
return void

SetGlobalTexGenMode() public static method

public static SetGlobalTexGenMode ( string propertyName, TexGenMode mode ) : void
propertyName string
mode TexGenMode
return void

SetGlobalTexture() public static method

public static SetGlobalTexture ( string propertyName, Texture tex ) : void
propertyName string
tex Texture
return void

SetGlobalTextureMatrixName() public static method

public static SetGlobalTextureMatrixName ( string propertyName, string matrixName ) : void
propertyName string
matrixName string
return void

SetGlobalVector() public static method

public static SetGlobalVector ( int nameID, Vector4 vec ) : void
nameID int
vec Vector4
return void

SetGlobalVector() public static method

public static SetGlobalVector ( string propertyName, Vector4 vec ) : void
propertyName string
vec Vector4
return void

Shader() public method

public Shader ( )

WarmupAllShaders() public static method

public static WarmupAllShaders ( ) : void
return void