From ea71dd6e07a81c27a155309385f0705e9573a14b Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 1 Feb 2022 10:54:00 -0700 Subject: [PATCH] Linear sampling sanity check --- shaders/cAbberation.fx | 3 +++ shaders/cAutoExposure.fx | 6 +++++ shaders/cBloom.fx | 27 ++++++++++++++++++++++ shaders/cColorNormalization.fx | 3 +++ shaders/cFrameBlending.fx | 7 ++++++ shaders/cFrameDifference.fx | 12 ++++++++++ shaders/cGaussianBlur.fx | 3 +++ shaders/cHornSchunck.fx | 36 +++++++++++++++++++++++++++++ shaders/cInterpolation.fx | 42 ++++++++++++++++++++++++++++++++++ shaders/cLuminance.fx | 3 +++ shaders/cMedian.fx | 3 +++ shaders/cMotionBlur.fx | 39 +++++++++++++++++++++++++++++++ shaders/cOpticalFlow.fx | 42 ++++++++++++++++++++++++++++++++++ shaders/cPingPong.fx | 9 ++++++++ shaders/cShard.fx | 3 +++ shaders/cSrcDestBlend.fx | 6 +++++ shaders/cThreshold.fx | 3 +++ shaders/cTile.fx | 3 +++ shaders/kContour.fx | 3 +++ shaders/kDatamosh.fx | 23 +++++++++++++++---- shaders/kMirror.fx | 3 +++ 21 files changed, 275 insertions(+), 4 deletions(-) diff --git a/shaders/cAbberation.fx b/shaders/cAbberation.fx index 1409153..c970177 100644 --- a/shaders/cAbberation.fx +++ b/shaders/cAbberation.fx @@ -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 diff --git a/shaders/cAutoExposure.fx b/shaders/cAutoExposure.fx index 0ea1404..63e4ebf 100644 --- a/shaders/cAutoExposure.fx +++ b/shaders/cAutoExposure.fx @@ -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 @@ -69,6 +72,9 @@ texture2D _RenderLumaLOD sampler2D _SampleLumaLOD { Texture = _RenderLumaLOD; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cBloom.fx b/shaders/cBloom.fx index c91bdb9..6e88161 100644 --- a/shaders/cBloom.fx +++ b/shaders/cBloom.fx @@ -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 @@ -84,6 +87,9 @@ texture2D _RenderBlit sampler2D _SampleBlit { Texture = _RenderBlit; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom1 @@ -96,6 +102,9 @@ texture2D _RenderBloom1 sampler2D _SampleBloom1 { Texture = _RenderBloom1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom2 @@ -108,6 +117,9 @@ texture2D _RenderBloom2 sampler2D _SampleBloom2 { Texture = _RenderBloom2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom3 @@ -120,6 +132,9 @@ texture2D _RenderBloom3 sampler2D _SampleBloom3 { Texture = _RenderBloom3; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom4 @@ -132,6 +147,9 @@ texture2D _RenderBloom4 sampler2D _SampleBloom4 { Texture = _RenderBloom4; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom5 @@ -144,6 +162,9 @@ texture2D _RenderBloom5 sampler2D _SampleBloom5 { Texture = _RenderBloom5; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom6 @@ -156,6 +177,9 @@ texture2D _RenderBloom6 sampler2D _SampleBloom6 { Texture = _RenderBloom6; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderBloom7 @@ -168,6 +192,9 @@ texture2D _RenderBloom7 sampler2D _SampleBloom7 { Texture = _RenderBloom7; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cColorNormalization.fx b/shaders/cColorNormalization.fx index 97ca5ba..5489031 100644 --- a/shaders/cColorNormalization.fx +++ b/shaders/cColorNormalization.fx @@ -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 diff --git a/shaders/cFrameBlending.fx b/shaders/cFrameBlending.fx index cab0547..5018c56 100644 --- a/shaders/cFrameBlending.fx +++ b/shaders/cFrameBlending.fx @@ -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 @@ -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 diff --git a/shaders/cFrameDifference.fx b/shaders/cFrameDifference.fx index 661b068..744a488 100644 --- a/shaders/cFrameDifference.fx +++ b/shaders/cFrameDifference.fx @@ -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 @@ -74,6 +77,9 @@ namespace FrameDifference sampler2D _SampleCurrent { Texture = _RenderCurrent; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderDifference @@ -86,6 +92,9 @@ namespace FrameDifference sampler2D _SampleDifference { Texture = _RenderDifference; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderPrevious @@ -98,6 +107,9 @@ namespace FrameDifference sampler2D _SamplePrevious { Texture = _RenderPrevious; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cGaussianBlur.fx b/shaders/cGaussianBlur.fx index d648f0e..fcb2f40 100644 --- a/shaders/cGaussianBlur.fx +++ b/shaders/cGaussianBlur.fx @@ -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 diff --git a/shaders/cHornSchunck.fx b/shaders/cHornSchunck.fx index e3be1b8..b165e06 100644 --- a/shaders/cHornSchunck.fx +++ b/shaders/cHornSchunck.fx @@ -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 @@ -94,6 +97,9 @@ namespace HornSchunck sampler2D _SampleData0 { Texture = _RenderData0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData1 @@ -107,6 +113,9 @@ namespace HornSchunck sampler2D _SampleData1 { Texture = _RenderData1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData2 @@ -120,6 +129,9 @@ namespace HornSchunck sampler2D _SampleData2 { Texture = _RenderData2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary7 @@ -132,6 +144,9 @@ namespace HornSchunck sampler2D _SampleTemporary7 { Texture = _RenderTemporary7; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary6 @@ -144,6 +159,9 @@ namespace HornSchunck sampler2D _SampleTemporary6 { Texture = _RenderTemporary6; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary5 @@ -156,6 +174,9 @@ namespace HornSchunck sampler2D _SampleTemporary5 { Texture = _RenderTemporary5; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary4 @@ -168,6 +189,9 @@ namespace HornSchunck sampler2D _SampleTemporary4 { Texture = _RenderTemporary4; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary3 @@ -180,6 +204,9 @@ namespace HornSchunck sampler2D _SampleTemporary3 { Texture = _RenderTemporary3; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary2 @@ -192,6 +219,9 @@ namespace HornSchunck sampler2D _SampleTemporary2 { Texture = _RenderTemporary2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary1 @@ -204,6 +234,9 @@ namespace HornSchunck sampler2D _SampleTemporary1 { Texture = _RenderTemporary1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary0 @@ -216,6 +249,9 @@ namespace HornSchunck sampler2D _SampleTemporary0 { Texture = _RenderTemporary0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cInterpolation.fx b/shaders/cInterpolation.fx index c0a2701..72fabf9 100644 --- a/shaders/cInterpolation.fx +++ b/shaders/cInterpolation.fx @@ -79,6 +79,9 @@ namespace Interpolation sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -97,6 +100,9 @@ namespace Interpolation Texture = _RenderFrame0; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -113,6 +119,9 @@ namespace Interpolation sampler2D _SampleData0 { Texture = _RenderData0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData1 @@ -126,6 +135,9 @@ namespace Interpolation sampler2D _SampleData1 { Texture = _RenderData1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData2 @@ -139,6 +151,9 @@ namespace Interpolation sampler2D _SampleData2 { Texture = _RenderData2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary7 @@ -151,6 +166,9 @@ namespace Interpolation sampler2D _SampleTemporary7 { Texture = _RenderTemporary7; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary6 @@ -163,6 +181,9 @@ namespace Interpolation sampler2D _SampleTemporary6 { Texture = _RenderTemporary6; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary5 @@ -175,6 +196,9 @@ namespace Interpolation sampler2D _SampleTemporary5 { Texture = _RenderTemporary5; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary4 @@ -187,6 +211,9 @@ namespace Interpolation sampler2D _SampleTemporary4 { Texture = _RenderTemporary4; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary3 @@ -199,6 +226,9 @@ namespace Interpolation sampler2D _SampleTemporary3 { Texture = _RenderTemporary3; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary2 @@ -211,6 +241,9 @@ namespace Interpolation sampler2D _SampleTemporary2 { Texture = _RenderTemporary2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary1 @@ -223,6 +256,9 @@ namespace Interpolation sampler2D _SampleTemporary1 { Texture = _RenderTemporary1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary0 @@ -235,6 +271,9 @@ namespace Interpolation sampler2D _SampleTemporary0 { Texture = _RenderTemporary0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderFrame1 @@ -249,6 +288,9 @@ namespace Interpolation Texture = _RenderFrame1; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cLuminance.fx b/shaders/cLuminance.fx index 033f9fb..1373fd8 100644 --- a/shaders/cLuminance.fx +++ b/shaders/cLuminance.fx @@ -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 diff --git a/shaders/cMedian.fx b/shaders/cMedian.fx index 9e89b97..5771e64 100644 --- a/shaders/cMedian.fx +++ b/shaders/cMedian.fx @@ -38,6 +38,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cMotionBlur.fx b/shaders/cMotionBlur.fx index b6b721b..6ba6ef5 100644 --- a/shaders/cMotionBlur.fx +++ b/shaders/cMotionBlur.fx @@ -87,6 +87,9 @@ namespace MotionBlur sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -103,6 +106,9 @@ namespace MotionBlur sampler2D _SampleBuffer { Texture = _RenderBuffer; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData0 @@ -116,6 +122,9 @@ namespace MotionBlur sampler2D _SampleData0 { Texture = _RenderData0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData1 @@ -129,6 +138,9 @@ namespace MotionBlur sampler2D _SampleData1 { Texture = _RenderData1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData2 @@ -142,6 +154,9 @@ namespace MotionBlur sampler2D _SampleData2 { Texture = _RenderData2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary7 @@ -154,6 +169,9 @@ namespace MotionBlur sampler2D _SampleTemporary7 { Texture = _RenderTemporary7; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary6 @@ -166,6 +184,9 @@ namespace MotionBlur sampler2D _SampleTemporary6 { Texture = _RenderTemporary6; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary5 @@ -178,6 +199,9 @@ namespace MotionBlur sampler2D _SampleTemporary5 { Texture = _RenderTemporary5; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary4 @@ -190,6 +214,9 @@ namespace MotionBlur sampler2D _SampleTemporary4 { Texture = _RenderTemporary4; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary3 @@ -202,6 +229,9 @@ namespace MotionBlur sampler2D _SampleTemporary3 { Texture = _RenderTemporary3; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary2 @@ -214,6 +244,9 @@ namespace MotionBlur sampler2D _SampleTemporary2 { Texture = _RenderTemporary2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary1 @@ -226,6 +259,9 @@ namespace MotionBlur sampler2D _SampleTemporary1 { Texture = _RenderTemporary1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary0 @@ -238,6 +274,9 @@ namespace MotionBlur sampler2D _SampleTemporary0 { Texture = _RenderTemporary0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cOpticalFlow.fx b/shaders/cOpticalFlow.fx index 33afa9c..e11a9a5 100644 --- a/shaders/cOpticalFlow.fx +++ b/shaders/cOpticalFlow.fx @@ -128,6 +128,9 @@ namespace OpticalFlow sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -144,6 +147,9 @@ namespace OpticalFlow sampler2D _SampleData0 { Texture = _RenderData0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData1 @@ -157,6 +163,9 @@ namespace OpticalFlow sampler2D _SampleData1 { Texture = _RenderData1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderData2 @@ -170,6 +179,9 @@ namespace OpticalFlow sampler2D _SampleData2 { Texture = _RenderData2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary7 @@ -182,6 +194,9 @@ namespace OpticalFlow sampler2D _SampleTemporary7 { Texture = _RenderTemporary7; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary6 @@ -194,6 +209,9 @@ namespace OpticalFlow sampler2D _SampleTemporary6 { Texture = _RenderTemporary6; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary5 @@ -206,6 +224,9 @@ namespace OpticalFlow sampler2D _SampleTemporary5 { Texture = _RenderTemporary5; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary4 @@ -218,6 +239,9 @@ namespace OpticalFlow sampler2D _SampleTemporary4 { Texture = _RenderTemporary4; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary3 @@ -230,6 +254,9 @@ namespace OpticalFlow sampler2D _SampleTemporary3 { Texture = _RenderTemporary3; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary2 @@ -242,6 +269,9 @@ namespace OpticalFlow sampler2D _SampleTemporary2 { Texture = _RenderTemporary2; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary1 @@ -254,6 +284,9 @@ namespace OpticalFlow sampler2D _SampleTemporary1 { Texture = _RenderTemporary1; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderTemporary0 @@ -266,6 +299,9 @@ namespace OpticalFlow sampler2D _SampleTemporary0 { Texture = _RenderTemporary0; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; #if RENDER_VELOCITY_STREAMS @@ -279,12 +315,18 @@ namespace OpticalFlow sampler2D _SampleLines { Texture = _RenderLines; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; #endif sampler2D _SampleColorGamma { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; // Vertex shaders diff --git a/shaders/cPingPong.fx b/shaders/cPingPong.fx index eced31d..d8ee184 100644 --- a/shaders/cPingPong.fx +++ b/shaders/cPingPong.fx @@ -47,6 +47,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -62,6 +65,9 @@ texture2D _RenderBufferA sampler2D _SampleBufferA { Texture = _RenderBufferA; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -77,6 +83,9 @@ texture2D _RenderBufferB sampler2D _SampleBufferB { Texture = _RenderBufferB; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cShard.fx b/shaders/cShard.fx index 93a8024..50fa54f 100644 --- a/shaders/cShard.fx +++ b/shaders/cShard.fx @@ -42,6 +42,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cSrcDestBlend.fx b/shaders/cSrcDestBlend.fx index 9474202..d2180f6 100644 --- a/shaders/cSrcDestBlend.fx +++ b/shaders/cSrcDestBlend.fx @@ -44,6 +44,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -59,6 +62,9 @@ texture2D _RenderFrame sampler2D _SampleFrame { Texture = _RenderFrame; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cThreshold.fx b/shaders/cThreshold.fx index 3ade3b3..d5b11ba 100644 --- a/shaders/cThreshold.fx +++ b/shaders/cThreshold.fx @@ -62,6 +62,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/cTile.fx b/shaders/cTile.fx index d4c6b47..0967c37 100644 --- a/shaders/cTile.fx +++ b/shaders/cTile.fx @@ -52,6 +52,9 @@ sampler2D _SampleColor Texture = _RenderColor; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/kContour.fx b/shaders/kContour.fx index acd76a7..e67bdd5 100644 --- a/shaders/kContour.fx +++ b/shaders/kContour.fx @@ -86,6 +86,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/kDatamosh.fx b/shaders/kDatamosh.fx index 2f8a317..3f4b917 100644 --- a/shaders/kDatamosh.fx +++ b/shaders/kDatamosh.fx @@ -120,6 +120,9 @@ namespace DataMosh Texture = _RenderColor; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif @@ -138,6 +141,9 @@ namespace DataMosh Texture = _RenderFrame0; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderDerivatives @@ -153,6 +159,9 @@ namespace DataMosh Texture = _RenderDerivatives; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderOpticalFlow @@ -166,10 +175,10 @@ namespace DataMosh sampler2D _SampleOpticalFlow { Texture = _RenderOpticalFlow; - MinFilter = _FILTER; - MagFilter = _FILTER; AddressU = MIRROR; AddressV = MIRROR; + MinFilter = _FILTER; + MagFilter = _FILTER; }; texture2D _RenderAccumulation @@ -182,10 +191,10 @@ namespace DataMosh sampler2D _SampleAccumulation { Texture = _RenderAccumulation; - MinFilter = _FILTER; - MagFilter = _FILTER; AddressU = MIRROR; AddressV = MIRROR; + MinFilter = _FILTER; + MagFilter = _FILTER; }; texture2D _RenderFrame1 @@ -201,6 +210,9 @@ namespace DataMosh Texture = _RenderFrame1; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; }; texture2D _RenderFeedback @@ -215,6 +227,9 @@ namespace DataMosh Texture = _RenderFeedback; AddressU = MIRROR; AddressV = MIRROR; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif diff --git a/shaders/kMirror.fx b/shaders/kMirror.fx index 46131a5..9ce2918 100644 --- a/shaders/kMirror.fx +++ b/shaders/kMirror.fx @@ -42,6 +42,9 @@ texture2D _RenderColor : COLOR; sampler2D _SampleColor { Texture = _RenderColor; + MagFilter = LINEAR; + MinFilter = LINEAR; + MipFilter = LINEAR; #if BUFFER_COLOR_BIT_DEPTH == 8 SRGBTexture = TRUE; #endif