|
@@ -77,7 +77,13 @@ $HDRPostFX::colorCorrectionRamp = "core/scripts/client/postFx/null_color_ramp.pn
|
|
singleton ShaderData( HDR_BrightPassShader )
|
|
singleton ShaderData( HDR_BrightPassShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
- DXPixelShaderFile = "shaders/common/postFx/hdr/brightPassFilterP.hlsl";
|
|
|
|
|
|
+ DXPixelShaderFile = "shaders/common/postFx/hdr/brightPassFilterP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/brightPassFilterP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+ samplerNames[1] = "$luminanceTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -85,6 +91,11 @@ singleton ShaderData( HDR_DownScale4x4Shader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/hdr/downScale4x4V.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/hdr/downScale4x4V.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/downScale4x4P.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/downScale4x4P.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/hdr/gl/downScale4x4V.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/downScale4x4P.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 2.0;
|
|
pixVersion = 2.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -92,6 +103,11 @@ singleton ShaderData( HDR_BloomGaussBlurHShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/bloomGaussBlurHP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/bloomGaussBlurHP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/bloomGaussBlurHP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -99,6 +115,11 @@ singleton ShaderData( HDR_BloomGaussBlurVShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/bloomGaussBlurVP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/bloomGaussBlurVP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/bloomGaussBlurVP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -106,6 +127,11 @@ singleton ShaderData( HDR_SampleLumShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/sampleLumInitialP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/sampleLumInitialP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/sampleLumInitialP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -113,6 +139,11 @@ singleton ShaderData( HDR_DownSampleLumShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/sampleLumIterativeP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/sampleLumIterativeP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/sampleLumIterativeP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -120,6 +151,12 @@ singleton ShaderData( HDR_CalcAdaptedLumShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/calculateAdaptedLumP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/calculateAdaptedLumP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/calculateAdaptedLumP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$currLum";
|
|
|
|
+ samplerNames[1] = "$lastAdaptedLum";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -127,6 +164,14 @@ singleton ShaderData( HDR_CombineShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/finalPassCombineP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/finalPassCombineP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/finalPassCombineP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$sceneTex";
|
|
|
|
+ samplerNames[1] = "$luminanceTex";
|
|
|
|
+ samplerNames[2] = "$bloomTex";
|
|
|
|
+ samplerNames[3] = "$colorCorrectionTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -421,6 +466,11 @@ singleton ShaderData( LuminanceVisShader )
|
|
{
|
|
{
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/luminanceVisP.hlsl";
|
|
DXPixelShaderFile = "shaders/common/postFx/hdr/luminanceVisP.hlsl";
|
|
|
|
+ OGLVertexShaderFile = "shaders/common/postFx/gl/postFxV.glsl";
|
|
|
|
+ OGLPixelShaderFile = "shaders/common/postFx/hdr/gl/luminanceVisP.glsl";
|
|
|
|
+
|
|
|
|
+ samplerNames[0] = "$inputTex";
|
|
|
|
+
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
|
|
|