Example #1
0
        public override void Setup(ref TargetSetupContext context)
        {
            context.AddAssetDependency(kSourceCodeGuid, AssetCollection.Flags.SourceDependency);
            if (!context.HasCustomEditorForRenderPipeline(null))
            {
                context.customEditorForRenderPipelines.Add((typeof(BuiltInUnlitGUI).FullName, ""));
            }

            // Process SubShaders
            context.AddSubShader(SubShaders.Unlit(target, target.renderType, target.renderQueue));
        }
Example #2
0
        public override void Setup(ref TargetSetupContext context)
        {
            context.AddAssetDependency(kSourceCodeGuid, AssetCollection.Flags.SourceDependency);
            base.Setup(ref context);

            var universalRPType = typeof(UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset);

            if (!context.HasCustomEditorForRenderPipeline(universalRPType))
            {
                context.AddCustomEditorForRenderPipeline(typeof(ShaderGraphUnlitGUI).FullName, universalRPType);
            }

            // Process SubShaders
            context.AddSubShader(SubShaders.UnlitDOTS(target, target.renderType, target.renderQueue));
            context.AddSubShader(SubShaders.Unlit(target, target.renderType, target.renderQueue));
        }
Example #3
0
 public override void Setup(ref TargetSetupContext context)
 {
     context.AddAssetDependency(kSourceCodeGuid, AssetCollection.Flags.SourceDependency);
     context.AddSubShader(SubShaders.SpriteLit(target));
 }