public override void StartPre(ICoreAPI api) { if (api is ICoreClientAPI) { Instance = this; capi = (ICoreClientAPI)api; Events = new Events(); ShaderInjector = new ShaderInjector(); } }
public static void RegisterStaticProperty(this ShaderInjector injector, string output) { injector.RegisterShaderProperty(new StaticShaderProperty(output)); }
public static void RegisterBoolProperty(this ShaderInjector injector, string name, BoolValueShaderProperty.BoolValueDelegate boolGenerator) { injector.RegisterShaderProperty(new BoolValueShaderProperty(name, boolGenerator)); }
public static void RegisterFloatProperty(this ShaderInjector injector, string name, FloatValueShaderProperty.FloatValueDelegate floatGenerator) { injector.RegisterShaderProperty(new FloatValueShaderProperty(name, floatGenerator)); }