maint: added htrace ssgi
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
//pipelinedefine
|
||||
#define H_URP
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
|
||||
namespace HTraceSSGI.Scripts.Patcher
|
||||
{
|
||||
//it's Raytracing Patcher for 2022
|
||||
public class InstalledPackage// : AssetPostprocessor
|
||||
{
|
||||
// [InitializeOnLoadMethod]
|
||||
private static void InitializeOnLoad()
|
||||
{
|
||||
// #if UNITY_2022
|
||||
// string filePath_hRenderRTAO = Path.Combine(ConfiguratorUtils.GetHTraceFolderPath(), "Resources", "HTraceSSGI", "Computes", "HRenderRTAO.compute");
|
||||
//
|
||||
// if (File.Exists(filePath_hRenderRTAO) && File.ReadAllLines(filePath_hRenderRTAO).Length > 10)
|
||||
// {
|
||||
// string[] hRenderRTAO2022 = new string[]
|
||||
// {
|
||||
// "#pragma kernel RenderRTAO",
|
||||
// "[numthreads(8, 8, 1)]",
|
||||
// "void RenderRTAO(uint3 pixCoord : SV_DispatchThreadID, uint groupIndex : SV_GroupIndex, uint groupID : SV_GroupID)",
|
||||
// "{",
|
||||
// "}",
|
||||
// };
|
||||
//
|
||||
// File.WriteAllLines(filePath_hRenderRTAO, hRenderRTAO2022);
|
||||
// }
|
||||
//
|
||||
// string filePath_hMainHSLS = Path.Combine(ConfiguratorUtils.GetHTraceFolderPath(), "Resources", "HTraceSSGI", "Headers", "HMain.hlsl");
|
||||
// if (File.Exists(filePath_hMainHSLS))
|
||||
// {
|
||||
// string[] allLines_hMainHSLS = File.ReadAllLines(filePath_hMainHSLS);
|
||||
// if (string.IsNullOrEmpty(allLines_hMainHSLS[3]))
|
||||
// {
|
||||
// allLines_hMainHSLS[3] = "#define _RTHandleScale float4(1.0f, 1.0f, 1.0f, 1.0f)";
|
||||
// File.WriteAllLines(filePath_hMainHSLS, allLines_hMainHSLS);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a36a30b382dcbc14d8ff7380d9e2b473
|
||||
timeCreated: 1737699571
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 336896
|
||||
packageName: 'HTrace: Screen Space Global Illumination URP'
|
||||
packageVersion: 1.2.0
|
||||
assetPath: Assets/HTraceSSGI/Scripts/Patcher/InstalledPackage.cs
|
||||
uploadId: 840002
|
||||
Reference in New Issue
Block a user