Mooses2k / SecretHistories

First-person stealth/combat roguelite
Other
14 stars 12 forks source link

Screen-space effects such as pixelation or B&W or VHS #112

Open Mooses2k opened 2 years ago

Mooses2k commented 2 years ago

(DONE) Dither Add more of the colors, though.

(DONE) Pixelation: https://www.youtube.com/watch?v=HXaPGRkg_hY https://godotengine.org/asset-library/asset/586

(DONE) Color reduction: https://www.youtube.com/watch?v=Scrdv4oSeNw https://godotshaders.com/shader/color-reduction-and-dither/

Film grain, scanlines (done): https://godotshaders.com/shader/vhs-and-crt-monitor-effect/

PS1 (partially done): https://godotshaders.com/shader/ps1-shader/ https://godotshaders.com/shader/ps1-post-processing/ https://github.com/MenacingMecha/godot-psx-style-demo

General: https://github.com/Ahopness/GodotRetro

Maybe initially for testing have the L (for Look) key switch styles.

For now, items aren't affected, because of gun_cam layer.

Mooses2k commented 1 year ago

tested a dither and pencil one briefly but wasn't able to get a view through the viewport and the proper camera.

Mooses2k commented 1 year ago

https://docs.godotengine.org/en/stable/tutorials/shaders/advanced_postprocessing.html#advanced-post-processing

Stewie sez: just a quad in front of the camera with custom shader and render priority

can just child a quad on the FPSCamera? you can, but you may not want to you can give it a simple script that's just global_transform = get_viewport().get_camera().global_transform so it follows any camera

maybe with some offset to put it in front of the camera but with the cull margin thing, it may not even be needed

Mooses2k commented 1 year ago

Got some basic stuff in place for dithering and pencil filters but couldn't get it to work in screenspace branch

Mooses2k commented 1 year ago

pencil didn't look good. Got dither working

Mooses2k commented 1 year ago
Mooses2k commented 1 year ago

Added a PSX filter in branch, not working

Mooses2k commented 1 year ago

We're all done here except moving these to player_camera or UI layer, probably better, so it works with guncam too?

Also, some of the filters are too dark by default (dither, reduce color, PSX) - needs more advanced tweaking since tonemap exposure increasing didn't help