NodeWorld

Shader

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public static class Shader

Namespace NodeWorld.Flux.

Global shader properties of the world (read by the world's materials, e.g. a clock or a wind shared by every shader).

Methods

SetGlobalFloat

csharp
public static void SetGlobalFloat(string name, float value)

Sets a float every shader of the world reads under this name. Names starting with unity_ or _NW are Unity's and NodeWorld's: refused.

SetGlobalVector

csharp
public static void SetGlobalVector(string name, Vector4 value)

Sets a vector every shader of the world reads under this name. Names starting with unity_ or _NW are refused.

SetGlobalColor

csharp
public static void SetGlobalColor(string name, Color value)

Sets a color every shader of the world reads under this name. Names starting with unity_ or _NW are refused.

SetGlobalTexture

csharp
public static void SetGlobalTexture(string name, Texture texture)

A texture of the world (a field, a material's) as a global shader property; null clears it.

csharp
public static void SetGlobalTexture(string name, DataTexture texture)

A data texture of the script (DataTexture.Create) as a global shader property.

csharp
public static void SetGlobalTexture(string name, RenderTexture texture)

A render texture of the script (RenderTexture.Create) as a global shader property.