Welcome, Guest.
Username: Password: Remember me

TOPIC: Hud/Image overlay shader

Hud/Image overlay shader 5 months 3 weeks ago #1

Hello everyone, this is a port from Reshade 2.0+ to 3+ I can't remember who wrote it, I'm about 99% sure it was Marty McFly though :)
Note that the Hud image is located/placed into the Textures folder. You can modify the shader if your image/screen is smaller/larger
Code display:
/*
	Original code by Marty McFly
	Concept by TrophiHunter 
*/

#include "ReShade.fxh"

texture HudTex	< string source = "CFX_hud.png"; > {Width = 2560; Height = 1440; Format = RGBA8;};
sampler	HudColor 	{ Texture = HudTex; };

float4 PS_Hud(float4 vpos : SV_Position, float2 texcoord : TEXCOORD) : SV_Target
{
	float4 hud = tex2D(HudColor, texcoord);
	return lerp(tex2D(ReShade::BackBuffer, texcoord),hud,hud.a);
}

technique Hud_Tech
{
	pass HudPass
	{
		VertexShader = PostProcessVS;
		PixelShader = PS_Hud;
	}
}
Last Edit: 5 months 3 weeks ago by TrophiHunter.
The administrator has disabled public write access.
The following user(s) said Thank You: Genrix, WalterDasTrevas, Sinclair, Rudy102

Hud/Image overlay shader 3 months 2 days ago #2

  • XCanG
  • XCanG's Avatar
  • Offline
  • .do impossible beat unbeatable
  • Posts: 4
It is possible to add width and height as parameters for reshade settings, so you can edit it on hud? and it possible to make it auto-detection for images what may have different size, also does it redraw image if image itself is updated? for example if this image is chat application what save it to file and as well update in reshade (for people like me with only one monitor)
The administrator has disabled public write access.

Hud/Image overlay shader 3 months 2 days ago #3

I think I did not get it right, but I wish it were possible to CENTER the HUD on the screen, or change the positions, to see in my HDM.

Usually the HUD main information stays in the corners , and this is terrible for playing "non-VR" games on VR devices.
The administrator has disabled public write access.

Hud/Image overlay shader 1 month 4 weeks ago #4

I'm sure all of that is possible, I just don't know how to do it haha. Can we call Marty McFly to this post and ask him? I'm sure he might be able to make something.
The administrator has disabled public write access.