Пример #1
0
        public override void DefineDecal(out DecalDefinitionContext context)
        {
            context = new DecalDefinitionContext()
            {
                shader = "Hidden/kDecals/Unlit/AlphaClip",
            };

            context.AddDecalProperty(new KeywordDecalProperty(
                                         "Fog",
                                         "_FOG",
                                         false
                                         ));

            context.AddDecalProperty(new TextureDecalProperty(
                                         "Decal",
                                         "_DecalTex",
                                         null
                                         ));

            context.AddDecalProperty(new FloatDecalProperty(
                                         "Threshold",
                                         "_Threshold",
                                         0.5f
                                         ));
        }
Пример #2
0
        public override void DefineDecal(out DecalDefinitionContext context)
        {
            context = new DecalDefinitionContext()
            {
                shader = "Hidden/kDecals/Unlit/Blend",
            };

            context.AddDecalProperty(new KeywordDecalProperty(
                                         "Fog",
                                         "_FOG",
                                         false
                                         ));

            context.AddDecalProperty(new TextureDecalProperty(
                                         "Decal",
                                         "_DecalTex",
                                         null
                                         ));
        }