Пример #1
0
 public static void RegisterBoolProperty(this ShaderInjector injector, string name,
                                         BoolValueShaderProperty.BoolValueDelegate boolGenerator)
 {
     injector.RegisterShaderProperty(new BoolValueShaderProperty(name, boolGenerator));
 }
Пример #2
0
 public static void RegisterFloatProperty(this ShaderInjector injector, string name,
                                          FloatValueShaderProperty.FloatValueDelegate floatGenerator)
 {
     injector.RegisterShaderProperty(new FloatValueShaderProperty(name, floatGenerator));
 }
Пример #3
0
 public static void RegisterIntProperty(this ShaderInjector injector, string name,
                                        IntValueShaderProperty.IntValueDelegate intGenerator)
 {
     injector.RegisterShaderProperty(new IntValueShaderProperty(name, intGenerator));
 }
Пример #4
0
 public static void RegisterStaticProperty(this ShaderInjector injector, string output)
 {
     injector.RegisterShaderProperty(new StaticShaderProperty(output));
 }