Exemplo n.º 1
0
        public static string ToShaderString(this InstancingOptions options)
        {
            switch (options)
            {
            case InstancingOptions.RenderingLayer:
                return("renderinglayer");

            case InstancingOptions.NoLightProbe:
                return("nolightprobe");

            case InstancingOptions.NoLodFade:
                return("nolodfade");

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemplo n.º 2
0
 public static PragmaDescriptor InstancingOptions(InstancingOptions value) => new PragmaDescriptor
 {
     value = $"instancing_options {value.ToShaderString()}"
 };