maint: added htrace ssgi

This commit is contained in:
Chris
2025-12-31 12:44:11 -05:00
parent 91ce080f51
commit 54f2d5a85f
203 changed files with 17634 additions and 0 deletions

View File

@@ -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

View File

@@ -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