Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CRT-NewPixie semantics. #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Shaders/CRT-NewPixie.fx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ texture2D tAccTex { Width = BUFFER_WIDTH; Height = BUFFER_HEIGHT; Format = RGBA8
sampler sAccTex { Texture=tAccTex; };

//PASS 1
float3 PrevColor(float4 pos : SV_Position, float2 uv : TEXCOORD0) : SV_Target
float3 PrevColor(float4 pos : SV_Position, float2 uv : TexCoord) : SV_Target
{
return tex2D(ReShade::BackBuffer, uv).rgb;
}

float4 PS_NewPixie_Accum(float4 pos : SV_Position, float2 uv : TEXCOORD0) : SV_Target
float4 PS_NewPixie_Accum(float4 pos : SV_Position, float2 uv : TexCoord) : SV_Target
{
float4 a = tex2D(sAccTex, uv.xy) * float4(acc_modulate,acc_modulate,acc_modulate,acc_modulate);
float4 b = tex2D(ReShade::BackBuffer, uv.xy);
Expand All @@ -91,7 +91,7 @@ uniform float blur_y <
ui_label = "Vertical Blur [CRT-NewPixie]";
> = 1.0;

float4 PS_NewPixie_Blur(float4 pos : SV_Position, float2 uv_tx : TEXCOORD0) : SV_Target
float4 PS_NewPixie_Blur(float4 pos : SV_Position, float2 uv_tx : TexCoord) : SV_Target
{
float2 blur = float2(blur_x, blur_y) * ReShade::PixelSize.xy;
float2 uv = uv_tx.xy;
Expand Down Expand Up @@ -172,7 +172,7 @@ float rand(float2 co){ return frac(sin(dot(co.xy ,float2(12.9898,78.233))) * 437
#define resolution ReShade::ScreenSize.xy
#define mod(x,y) (x-y*floor(x/y))

float4 PS_NewPixie_Final(float4 pos: SV_Position, float2 uv_tx : TEXCOORD0) : SV_Target
float4 PS_NewPixie_Final(float4 pos: SV_Position, float2 uv_tx : TexCoord) : SV_Target
{
// stop time variable so the screen doesn't wiggle
float time = mod(FCount, 849.0) * 36.0;
Expand Down