示例#1
0
        public override void SetupTarget(ref TargetSetupContext context)
        {
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("7395c9320da217b42b9059744ceb1de6")); // MeshTarget
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("ac9e1a400a9ce404c8f26b9c1238417e")); // UniversalMeshTarget

            switch (context.masterNode)
            {
            case PBRMasterNode pbrMasterNode:
                context.SetupSubShader(UniversalSubShaders.DOTSPBR);
                break;

            case UnlitMasterNode unlitMasterNode:
                context.SetupSubShader(UniversalSubShaders.DOTSUnlit);
                break;
            }
        }
示例#2
0
        public virtual void SetupTarget(ref TargetSetupContext context)
        {
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("7395c9320da217b42b9059744ceb1de6")); // MeshTarget
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("ac9e1a400a9ce404c8f26b9c1238417e")); // UniversalMeshTarget

            var subShader = GetSubShaderDescriptorFromMasterNode(context.masterNode);

            if (subShader != null)
            {
                context.SetupSubShader(subShader.Value);
            }
        }
示例#3
0
        public void SetupTarget(ref TargetSetupContext context)
        {
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("7395c9320da217b42b9059744ceb1de6")); // MeshTarget
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("a3b60b90b9eb3e549adfd57a75e77811")); // HDRPRaytracingMeshTarget

            var subShader = GetSubShaderDescriptorFromMasterNode(context.masterNode);

            if (subShader != null)
            {
                context.SetupSubShader(subShader.Value);
            }
        }
示例#4
0
        public void SetupTarget(ref TargetSetupContext context)
        {
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("61d739b0177943f4d858e09ae4b69ea2")); // DecalTarget
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("21bb2072667892445b27f3e9aad497af")); // HDRPDecalTarget

            var subShader = GetSubShaderDescriptorFromMasterNode(context.masterNode);

            if (subShader != null)
            {
                context.SetupSubShader(subShader.Value);
            }
        }
示例#5
0
        public void SetupTarget(ref TargetSetupContext context)
        {
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("7395c9320da217b42b9059744ceb1de6")); // MeshTarget
            context.AddAssetDependencyPath(AssetDatabase.GUIDToAssetPath("326a52113ee5a7d46bf9145976dcb7f6")); // HDRPMeshTarget

            var subShader = GetSubShaderDescriptorFromMasterNode(context.masterNode);

            if (subShader != null)
            {
                context.SetupSubShader(subShader.Value);
            }
        }