Class Shader
Assembly: UnityEngine.dll
Syntax
public sealed class Shader : Object
Properties
globalMaximumLOD
Declaration
public static int globalMaximumLOD { get; set; }
Property Value
globalRenderPipeline
Declaration
public static string globalRenderPipeline { get; set; }
Property Value
|
Improve this Doc
View Source
globalShaderHardwareTier
Declaration
[Obsolete("Use Graphics.activeTier instead (UnityUpgradable) -> UnityEngine.Graphics.activeTier", false)]
public static ShaderHardwareTier globalShaderHardwareTier { get; set; }
Property Value
isSupported
Declaration
public bool isSupported { get; }
Property Value
maximumLOD
Declaration
public int maximumLOD { get; set; }
Property Value
renderQueue
Declaration
public int renderQueue { get; }
Property Value
Methods
DisableKeyword(String)
Declaration
public static void DisableKeyword(string keyword)
Parameters
Type |
Name |
Description |
String |
keyword |
|
EnableKeyword(String)
Declaration
public static void EnableKeyword(string keyword)
Parameters
Type |
Name |
Description |
String |
keyword |
|
Find(String)
Declaration
public static Shader Find(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalColor(Int32)
Declaration
public static Color GetGlobalColor(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalColor(String)
Declaration
public static Color GetGlobalColor(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalFloat(Int32)
Declaration
public static float GetGlobalFloat(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalFloat(String)
Declaration
public static float GetGlobalFloat(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalFloatArray(Int32)
Declaration
public static float[] GetGlobalFloatArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalFloatArray(Int32, List<Single>)
Declaration
public static void GetGlobalFloatArray(int nameID, List<float> values)
Parameters
|
Improve this Doc
View Source
GetGlobalFloatArray(String)
Declaration
public static float[] GetGlobalFloatArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalFloatArray(String, List<Single>)
Declaration
public static void GetGlobalFloatArray(string name, List<float> values)
Parameters
|
Improve this Doc
View Source
GetGlobalInt(Int32)
Declaration
public static int GetGlobalInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalInt(String)
Declaration
public static int GetGlobalInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalMatrix(Int32)
Declaration
public static Matrix4x4 GetGlobalMatrix(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalMatrix(String)
Declaration
public static Matrix4x4 GetGlobalMatrix(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalMatrixArray(Int32)
Declaration
public static Matrix4x4[] GetGlobalMatrixArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalMatrixArray(Int32, List<Matrix4x4>)
Declaration
public static void GetGlobalMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
GetGlobalMatrixArray(String)
Declaration
public static Matrix4x4[] GetGlobalMatrixArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalMatrixArray(String, List<Matrix4x4>)
Declaration
public static void GetGlobalMatrixArray(string name, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
GetGlobalTexture(Int32)
Declaration
public static Texture GetGlobalTexture(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalTexture(String)
Declaration
public static Texture GetGlobalTexture(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalVector(Int32)
Declaration
public static Vector4 GetGlobalVector(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalVector(String)
Declaration
public static Vector4 GetGlobalVector(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalVectorArray(Int32)
Declaration
public static Vector4[] GetGlobalVectorArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGlobalVectorArray(Int32, List<Vector4>)
Declaration
public static void GetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
GetGlobalVectorArray(String)
Declaration
public static Vector4[] GetGlobalVectorArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGlobalVectorArray(String, List<Vector4>)
Declaration
public static void GetGlobalVectorArray(string name, List<Vector4> values)
Parameters
IsKeywordEnabled(String)
Declaration
public static bool IsKeywordEnabled(string keyword)
Parameters
Type |
Name |
Description |
String |
keyword |
|
Returns
PropertyToID(String)
Declaration
public static int PropertyToID(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
SetGlobalBuffer(Int32, ComputeBuffer)
Declaration
public static void SetGlobalBuffer(int nameID, ComputeBuffer value)
Parameters
|
Improve this Doc
View Source
SetGlobalBuffer(String, ComputeBuffer)
Declaration
public static void SetGlobalBuffer(string name, ComputeBuffer value)
Parameters
|
Improve this Doc
View Source
SetGlobalColor(Int32, Color)
Declaration
public static void SetGlobalColor(int nameID, Color value)
Parameters
|
Improve this Doc
View Source
SetGlobalColor(String, Color)
Declaration
public static void SetGlobalColor(string name, Color value)
Parameters
|
Improve this Doc
View Source
SetGlobalFloat(Int32, Single)
Declaration
public static void SetGlobalFloat(int nameID, float value)
Parameters
|
Improve this Doc
View Source
SetGlobalFloat(String, Single)
Declaration
public static void SetGlobalFloat(string name, float value)
Parameters
|
Improve this Doc
View Source
SetGlobalFloatArray(Int32, List<Single>)
Declaration
public static void SetGlobalFloatArray(int nameID, List<float> values)
Parameters
|
Improve this Doc
View Source
SetGlobalFloatArray(Int32, Single[])
Declaration
public static void SetGlobalFloatArray(int nameID, float[] values)
Parameters
|
Improve this Doc
View Source
SetGlobalFloatArray(String, List<Single>)
Declaration
public static void SetGlobalFloatArray(string name, List<float> values)
Parameters
|
Improve this Doc
View Source
SetGlobalFloatArray(String, Single[])
Declaration
public static void SetGlobalFloatArray(string name, float[] values)
Parameters
|
Improve this Doc
View Source
SetGlobalInt(Int32, Int32)
Declaration
public static void SetGlobalInt(int nameID, int value)
Parameters
|
Improve this Doc
View Source
SetGlobalInt(String, Int32)
Declaration
public static void SetGlobalInt(string name, int value)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrix(Int32, Matrix4x4)
Declaration
public static void SetGlobalMatrix(int nameID, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrix(String, Matrix4x4)
Declaration
public static void SetGlobalMatrix(string name, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrixArray(Int32, List<Matrix4x4>)
Declaration
public static void SetGlobalMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrixArray(Int32, Matrix4x4[])
Declaration
public static void SetGlobalMatrixArray(int nameID, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrixArray(String, List<Matrix4x4>)
Declaration
public static void SetGlobalMatrixArray(string name, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
SetGlobalMatrixArray(String, Matrix4x4[])
Declaration
public static void SetGlobalMatrixArray(string name, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetGlobalTexture(Int32, Texture)
Declaration
public static void SetGlobalTexture(int nameID, Texture value)
Parameters
|
Improve this Doc
View Source
SetGlobalTexture(String, Texture)
Declaration
public static void SetGlobalTexture(string name, Texture value)
Parameters
|
Improve this Doc
View Source
SetGlobalVector(Int32, Vector4)
Declaration
public static void SetGlobalVector(int nameID, Vector4 value)
Parameters
|
Improve this Doc
View Source
SetGlobalVector(String, Vector4)
Declaration
public static void SetGlobalVector(string name, Vector4 value)
Parameters
|
Improve this Doc
View Source
SetGlobalVectorArray(Int32, List<Vector4>)
Declaration
public static void SetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
SetGlobalVectorArray(Int32, Vector4[])
Declaration
public static void SetGlobalVectorArray(int nameID, Vector4[] values)
Parameters
|
Improve this Doc
View Source
SetGlobalVectorArray(String, List<Vector4>)
Declaration
public static void SetGlobalVectorArray(string name, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
SetGlobalVectorArray(String, Vector4[])
Declaration
public static void SetGlobalVectorArray(string name, Vector4[] values)
Parameters
WarmupAllShaders()
Declaration
public static void WarmupAllShaders()
Extension Methods