Skip to content

Commit

Permalink
Remove ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 10, 2025
1 parent 593b659 commit f4517b3
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 199 deletions.
1 change: 0 additions & 1 deletion base/assets/locale/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@
"Run": "Ausführen",
"S": "S",
"SSAO": "SSAO",
"SSR": "SSR",
"Samples": "Samples",
"Saturation": "Sättigung",
"Save": "Speichern",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@
"Run": "Εκτέλεση",
"S": "S",
"SSAO": "SSAO",
"SSR": "SSR",
"Samples": "Δείγματα",
"Saturation": "Κορεσμός",
"Save": "Αποθήκευση",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@
"Run": "Ejecutar",
"S": "S",
"SSAO": "SSAO",
"SSR": "SSR",
"Saturation": "Saturación",
"Save": "Guardar",
"Save As...": "Guardar como...",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@
"rounded_cube": "cube_arrondi",
"Run": "Exécuter",
"SSAO": "SSAO",
"SSR": "SSR",
"Saturation": "Saturation",
"Save": "Enregistrer",
"Save As...": "Enregistrer sous...",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@
"Run": "実行",
"S": "S",
"SSAO": "スクリーンスペースアンビエントオクルージョン",
"SSR": "スクリーンスペース反射",
"Samples": "サンプル数",
"Saturation": "彩度",
"Save": "保存",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@
"Run": "Wystartuj",
"S": "S",
"SSAO": "SSAO",
"SSR": "SSR",
"Samples": "Próbki",
"Saturation": "Saturacja",
"Save": "Zapisz",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@
"Run": "Rodar",
"S": "S",
"SSAO": "SSAO",
"SSR": "SSR",
"Saturation": "Saturação",
"Save": "Salvar",
"Save As...": "Salvar Como...",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@
"Run": "Запуск",
"S": "S",
"SSAO": "Всеобщая окклюзия в экранном пространстве",
"SSR": "Отражения в экранном пространстве",
"Saturation": "Насыщение",
"Save": "Сохранить",
"Save As...": "Сохранить как...",
Expand Down
1 change: 0 additions & 1 deletion base/assets/locale/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@
"Run": "运行",
"S": "S",
"SSAO": "屏幕空间环境光遮蔽(SSAO)",
"SSR": "屏幕空间反射(SSR)",
"Saturation": "饱和度",
"Save": "保存",
"Save As...": "另存为...",
Expand Down
25 changes: 0 additions & 25 deletions base/shaders/ssr_blur_pass.frag.glsl

This file was deleted.

113 changes: 0 additions & 113 deletions base/shaders/ssr_pass.frag.glsl

This file was deleted.

9 changes: 0 additions & 9 deletions base/sources/box_preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,6 @@ function box_preferences_show() {
context_raw.hssao.selected = config_raw.rp_ssao;
}

context_raw.hssr = ui_handle(__ID__);
if (context_raw.hssr.init) {
context_raw.hssr.selected = config_raw.rp_ssr;
}

context_raw.hbloom = ui_handle(__ID__);
if (context_raw.hbloom.init) {
context_raw.hbloom.selected = config_raw.rp_bloom;
Expand Down Expand Up @@ -640,10 +635,6 @@ function box_preferences_show() {
if (context_raw.hssao.changed) {
config_apply();
}
ui_check(context_raw.hssr, tr("SSR"));
if (context_raw.hssr.changed) {
config_apply();
}
ui_check(context_raw.hbloom, tr("Bloom"));
if (context_raw.hbloom.changed) {
config_apply();
Expand Down
4 changes: 0 additions & 4 deletions base/sources/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function config_save() {
json_encode_f32("window_scale", config_raw.window_scale);
json_encode_f32("rp_supersample", config_raw.rp_supersample);
json_encode_bool("rp_ssao", config_raw.rp_ssao);
json_encode_bool("rp_ssr", config_raw.rp_ssr);
json_encode_bool("rp_bloom", config_raw.rp_bloom);
json_encode_bool("rp_motionblur", config_raw.rp_motionblur);
json_encode_bool("rp_gi", config_raw.rp_gi);
Expand Down Expand Up @@ -147,7 +146,6 @@ function config_init() {
///else
config_raw.rp_ssao = true;
///end
config_raw.rp_ssr = false;
config_raw.rp_supersample = 1.0;
config_raw.version = manifest_version;
config_raw.sha = config_get_sha();
Expand Down Expand Up @@ -246,7 +244,6 @@ function config_import_from(from: config_t) {

function config_apply() {
config_raw.rp_ssao = context_raw.hssao.selected;
config_raw.rp_ssr = context_raw.hssr.selected;
config_raw.rp_bloom = context_raw.hbloom.selected;
config_raw.rp_gi = context_raw.hvxao.selected;
config_raw.rp_supersample = config_get_super_sample_size(context_raw.hsupersample.position);
Expand Down Expand Up @@ -394,7 +391,6 @@ type config_t = {
// Render path
rp_supersample?: f32;
rp_ssao?: bool;
rp_ssr?: bool;
rp_bloom?: bool;
rp_motionblur?: bool;
rp_gi?: bool;
Expand Down
1 change: 0 additions & 1 deletion base/sources/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ type context_t = {
fov_handle?: ui_handle_t;
undo_handle?: ui_handle_t;
hssao?: ui_handle_t;
hssr?: ui_handle_t;
hbloom?: ui_handle_t;
hsupersample?: ui_handle_t;
hvxao?: ui_handle_t;
Expand Down
37 changes: 0 additions & 37 deletions base/sources/render_path_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,43 +383,6 @@ function render_path_base_draw_deferred_light() {
///end
}

function render_path_base_draw_ssr() {
if (config_raw.rp_ssr != false) {
if (map_get(_render_path_cached_shader_contexts, "shader_datas/ssr_pass/ssr_pass") == null) {
{
let t: render_target_t = render_target_create();
t.name = "bufb";
t.width = 0;
t.height = 0;
t.format = "RGBA64";
render_path_create_render_target(t);
}
render_path_load_shader("shader_datas/ssr_pass/ssr_pass");
render_path_load_shader("shader_datas/ssr_blur_pass/ssr_blur_pass_x");
render_path_load_shader("shader_datas/ssr_blur_pass/ssr_blur_pass_y3_blend");
}
let targeta: string = "bufb";
let targetb: string = "gbuffer1";

render_path_set_target(targeta);
render_path_bind_target("tex", "tex");
render_path_bind_target("_main", "gbufferD");
render_path_bind_target("gbuffer0", "gbuffer0");
render_path_bind_target("gbuffer1", "gbuffer1");
render_path_draw_shader("shader_datas/ssr_pass/ssr_pass");

render_path_set_target(targetb);
render_path_bind_target(targeta, "tex");
render_path_bind_target("gbuffer0", "gbuffer0");
render_path_draw_shader("shader_datas/ssr_blur_pass/ssr_blur_pass_x");

render_path_set_target("tex");
render_path_bind_target(targetb, "tex");
render_path_bind_target("gbuffer0", "gbuffer0");
render_path_draw_shader("shader_datas/ssr_blur_pass/ssr_blur_pass_y3_blend");
}
}

// function render_path_base_draw_motion_blur() {
// if (config_raw.rp_motionblur != false) {
// render_path_set_target("buf");
Expand Down
1 change: 0 additions & 1 deletion base/sources/render_path_deferred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ function render_path_deferred_draw_deferred() {
///end
render_path_base_draw_deferred_light();
render_path_base_draw_bloom();
render_path_base_draw_ssr();
// draw_motion_blur();
// draw_histogram();

Expand Down

0 comments on commit f4517b3

Please sign in to comment.