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

A super-simple shader can free pixel stretching and position translation on the XY axis. #3236

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

crashGG
Copy link
Contributor

@crashGG crashGG commented Jun 29, 2024

A super-simple shader refined from the super-fast crt-cyclon.fx,It only provides the functions of free pixel stretching and position translation on the XY axis. Suitable for users who only want to fine-tune the screen zoom and position and do not like the bundled CRT-like effects.Fixed some bugs in the original version, adjusted the step progress and the range.

Some games have black borders on the top and bottom of the screen that are difficult to remove.like Tekken 3:
crop: all boarders
wildscreen rendering on
Black borders on the top and bottom
Tekken 3 (Japan, Asia) 2024-06-29-20-04-25

crop: only overscan area
wildscreen rendering on
The black border at the top has been reduced, but a few pixels have been cropped at the bottom.The proportions of the screen are incorrect, the characters are squeezed and become thin and long.

Tekken 3 (Japan, Asia) 2024-06-29-20-05-56

crop: all boarders
wildscreen rendering on
Custom Aspect Ratio: 83:50
Post shader: XY-Pos-free
Zoom Image X:0.0665
Zoom Image Y:0.0665
Image Center X:-3.32
Image Center Y:-4.17

a perfect 16:9 screen:
Tekken 3 (Japan, Asia) 2024-06-29-20-10-59

Some games have incorrect aspect ratio, such as tomb raider 3:
4:3 original:
Tomb Raider III - Adventures of Lara Croft (USA) 2024-06-29-20-19-24

16:9 wildscreen rendering on:
Tomb Raider III - Adventures of Lara Croft (USA) 2024-06-29-20-19-31

Custom Aspect Ratio: 13:9
wildscreen rendering on
Post shader: XY-Pos-free
Zoom Image X:0.1875
Zoom Image Y:0
Image Center X:-9.38
Image Center Y:0
a perfect 16:9 screen:
Tomb Raider III - Adventures of Lara Croft (USA) 2024-06-29-20-18-39

A super-simple shader refined from the super-fast
@stenzek stenzek merged commit 66ba600 into stenzek:master Jun 30, 2024
6 checks passed
// Convergence
float3 res = tex2D(ReShade::BackBuffer,pos).rgb;

// Vignette

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of these two lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I wrote in the description, this shader is simplified and refined from crt-cyclon.fx. You are welcome to continue to simplify and optimize the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants