Post subject: CGP Filter
Joined: 10/6/2020
Posts: 1
Hi there, I'm really looking to get into TASing and hopefully uploading some new Movies onto TASvideos. Due to eyesight issues I run Windows with an Inverted color filter: Windows Settings -> Ease of Access -> Color Filters -> Turn On Color Filters -> (o) Inverted (reverse colors on the display) I then invert the colors of individual applications as needed, for example [PotPlayer] Video -> Pixel Shader -> Pre-Resize Pixel Shaders -> Invert [Firefox] Stylus extension: CSS Filter: img,video{filter:invert(100%);} Bizhawk appears to use: Config -> Display -> Scaling & Filtering -> Scaling Filter -> User -> Select -> ... And then asks for a .CGP File with the Invert Colors Code inside... However, I am unfamiliar with .CGP code, and cannot find any documentation about what BizHawk is expecting in the file. If there's any chance someone can provide me with an appropriate .CGP file that will literally just invert the colors of the game - I would be eternally grateful. Very many thanks, Seotha. EDIT: I just tried the below .CGP and .FX files that I had previously used in Altirra - but it just shows a small square in the corner of the BizHawk viewport.
shaders = "1"
shader0 = "invert.fx"
filter_linear0 = "true"
wrap_mode0 = "clamp_to_border"
scale_type_x0 = "viewport"
scale_x0 = "1"
scale_type_y0 = "viewport"
scale_y0 = "1.000000"
extern sampler src : register(s0);

void main_vertex(
	float4 pos : POSITION,
	float2 uv : TEXCOORD0,
	out float4 oPos : POSITION,
	out float2 oT0 : TEXCOORD0)
{
	oPos = pos;
	oT0 = uv;
}

half4 main_fragment(float2 uv : TEXCOORD0) : COLOR0 {
	half4 c = tex2D(src, uv);
	c.rgb = 1.0h - c.rgb;

	return c;
}