CRT shader issue

As I said, the following lines seem to work perfectly:

float4 crt_lottes(float2 texture_size, float2 video_size, float2 output_size, float2 tex, sampler2D s0)
{
	float2 pos = Warp(tex.xy*(texture_size.xy / video_size.xy))*(video_size.xy / texture_size.xy);
	pos -= 0.0001; // This line solves a DX9 issue !!!???
	float3 outColor = Tri(pos, texture_size);
	return float4(ToSrgb(outColor.rgb), 1.0);
}

I will stay with this solution at the moment, even if it’s rummy…

1 Like