Table of Contents

Method SetKeywordEnable

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

SetKeywordEnable(Material, string, bool)

Enables or disables a shader keyword on a material.

public static void SetKeywordEnable(this Material mat, string kw, bool enable)

Parameters

mat Material

Material to modify.

kw string

Keyword name.

enable bool

true to enable the keyword; false to disable it.