mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
Added screensapce decal system and stamp placement system in Radiant.
This commit is contained in:
@@ -2461,6 +2461,7 @@ struct glRaytracingLightingConstants_t
|
||||
float denoisePhiNormal;
|
||||
float denoisePhiPosition;
|
||||
float bumpStrength;
|
||||
|
||||
};
|
||||
|
||||
struct glRaytracingMeshMetadata_t
|
||||
@@ -2560,7 +2561,6 @@ struct glRaytracingLightingState_t
|
||||
static glRaytracingLightingState_t g_glRaytracingLighting;
|
||||
|
||||
static const DXGI_FORMAT GL_RAYTRACING_DENOISE_FORMAT = DXGI_FORMAT_R16G16B16A16_FLOAT;
|
||||
|
||||
enum glRaytracingLightingDescriptorIndex_t
|
||||
{
|
||||
GLR_DESC_LIGHTS_SRV = 0,
|
||||
@@ -3101,6 +3101,8 @@ float3 Doom3SafeNormalizeOr(float3 v, float3 fallbackDir)
|
||||
return (lenSq > 1e-8) ? (v * rsqrt(lenSq)) : fallbackDir;
|
||||
}
|
||||
|
||||
)"
|
||||
R"(
|
||||
float Doom3QuadraticFalloffImage(float texCoord)
|
||||
{
|
||||
// Math version of Doom 3 BFG's built-in _quadratic lookup table.
|
||||
@@ -3122,7 +3124,8 @@ float Doom3QuadraticFalloffImage(float texCoord)
|
||||
d = saturate(d);
|
||||
return d * d;
|
||||
}
|
||||
|
||||
)"
|
||||
R"(
|
||||
float Doom3QuadraticCentered(float centeredCoord)
|
||||
{
|
||||
// centeredCoord is -1 at one side of the light volume, 0 at the light center,
|
||||
@@ -7220,7 +7223,6 @@ void glRaytracingLightingSetShadowBias(float bias)
|
||||
glRaytracingLightingUpdateConstants();
|
||||
}
|
||||
|
||||
|
||||
void glRaytracingLightingSetPathTracingOptions(uint32_t samplesPerPixel, uint32_t maxBounces, int enableDenoiser, float denoiseStrength)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(g_glRaytracingMutex);
|
||||
|
||||
Reference in New Issue
Block a user