Skip to content

Commit

Permalink
Linear sampling sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Feb 1, 2022
1 parent a4fee08 commit ea71dd6
Show file tree
Hide file tree
Showing 21 changed files with 275 additions and 4 deletions.
3 changes: 3 additions & 0 deletions shaders/cAbberation.fx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand Down
6 changes: 6 additions & 0 deletions shaders/cAutoExposure.fx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand All @@ -69,6 +72,9 @@ texture2D _RenderLumaLOD
sampler2D _SampleLumaLOD
{
Texture = _RenderLumaLOD;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

// Vertex shaders
Expand Down
27 changes: 27 additions & 0 deletions shaders/cBloom.fx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand All @@ -84,6 +87,9 @@ texture2D _RenderBlit
sampler2D _SampleBlit
{
Texture = _RenderBlit;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom1
Expand All @@ -96,6 +102,9 @@ texture2D _RenderBloom1
sampler2D _SampleBloom1
{
Texture = _RenderBloom1;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom2
Expand All @@ -108,6 +117,9 @@ texture2D _RenderBloom2
sampler2D _SampleBloom2
{
Texture = _RenderBloom2;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom3
Expand All @@ -120,6 +132,9 @@ texture2D _RenderBloom3
sampler2D _SampleBloom3
{
Texture = _RenderBloom3;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom4
Expand All @@ -132,6 +147,9 @@ texture2D _RenderBloom4
sampler2D _SampleBloom4
{
Texture = _RenderBloom4;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom5
Expand All @@ -144,6 +162,9 @@ texture2D _RenderBloom5
sampler2D _SampleBloom5
{
Texture = _RenderBloom5;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom6
Expand All @@ -156,6 +177,9 @@ texture2D _RenderBloom6
sampler2D _SampleBloom6
{
Texture = _RenderBloom6;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderBloom7
Expand All @@ -168,6 +192,9 @@ texture2D _RenderBloom7
sampler2D _SampleBloom7
{
Texture = _RenderBloom7;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

// Vertex shaders
Expand Down
3 changes: 3 additions & 0 deletions shaders/cColorNormalization.fx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand Down
7 changes: 7 additions & 0 deletions shaders/cFrameBlending.fx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand All @@ -54,11 +57,15 @@ texture2D _RenderCopy
{
Width = BUFFER_WIDTH;
Height = BUFFER_HEIGHT;
Format = RGBA8;
};

sampler2D _SampleCopy
{
Texture = _RenderCopy;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand Down
12 changes: 12 additions & 0 deletions shaders/cFrameDifference.fx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ namespace FrameDifference
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand All @@ -74,6 +77,9 @@ namespace FrameDifference
sampler2D _SampleCurrent
{
Texture = _RenderCurrent;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderDifference
Expand All @@ -86,6 +92,9 @@ namespace FrameDifference
sampler2D _SampleDifference
{
Texture = _RenderDifference;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderPrevious
Expand All @@ -98,6 +107,9 @@ namespace FrameDifference
sampler2D _SamplePrevious
{
Texture = _RenderPrevious;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

// Vertex shaders
Expand Down
3 changes: 3 additions & 0 deletions shaders/cGaussianBlur.fx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ texture2D _RenderColor : COLOR;
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand Down
36 changes: 36 additions & 0 deletions shaders/cHornSchunck.fx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ namespace HornSchunck
sampler2D _SampleColor
{
Texture = _RenderColor;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
#if BUFFER_COLOR_BIT_DEPTH == 8
SRGBTexture = TRUE;
#endif
Expand All @@ -94,6 +97,9 @@ namespace HornSchunck
sampler2D _SampleData0
{
Texture = _RenderData0;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderData1
Expand All @@ -107,6 +113,9 @@ namespace HornSchunck
sampler2D _SampleData1
{
Texture = _RenderData1;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderData2
Expand All @@ -120,6 +129,9 @@ namespace HornSchunck
sampler2D _SampleData2
{
Texture = _RenderData2;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary7
Expand All @@ -132,6 +144,9 @@ namespace HornSchunck
sampler2D _SampleTemporary7
{
Texture = _RenderTemporary7;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary6
Expand All @@ -144,6 +159,9 @@ namespace HornSchunck
sampler2D _SampleTemporary6
{
Texture = _RenderTemporary6;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary5
Expand All @@ -156,6 +174,9 @@ namespace HornSchunck
sampler2D _SampleTemporary5
{
Texture = _RenderTemporary5;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary4
Expand All @@ -168,6 +189,9 @@ namespace HornSchunck
sampler2D _SampleTemporary4
{
Texture = _RenderTemporary4;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary3
Expand All @@ -180,6 +204,9 @@ namespace HornSchunck
sampler2D _SampleTemporary3
{
Texture = _RenderTemporary3;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary2
Expand All @@ -192,6 +219,9 @@ namespace HornSchunck
sampler2D _SampleTemporary2
{
Texture = _RenderTemporary2;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary1
Expand All @@ -204,6 +234,9 @@ namespace HornSchunck
sampler2D _SampleTemporary1
{
Texture = _RenderTemporary1;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

texture2D _RenderTemporary0
Expand All @@ -216,6 +249,9 @@ namespace HornSchunck
sampler2D _SampleTemporary0
{
Texture = _RenderTemporary0;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
};

// Vertex shaders
Expand Down
Loading

0 comments on commit ea71dd6

Please sign in to comment.