From 84a552ad47fcf90213a97ac2566c3963ef683bb4 Mon Sep 17 00:00:00 2001 From: "DEMONIZED-PC\\demonized" Date: Sat, 9 Nov 2024 08:28:18 +1000 Subject: [PATCH] Lucy, RavenAscendant, NLTP_ASHES: Transparency shader fix for detectors (https://github.com/nltp-ashes/Western-Goods/releases/tag/fix-vanilla-shader) --- README.md | 3 +++ gamedata/shaders/r3/models_selflight_det.s | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gamedata/shaders/r3/models_selflight_det.s diff --git a/README.md b/README.md index 320bf993..d7748478 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,9 @@ How to compile exes: 6. For successful compilation, **the latest build tools with MFC and ATL libraries is required** ## Changelog +**2024.11.08** +* Lucy, RavenAscendant, NLTP_ASHES: Transparency shader fix for detectors (https://github.com/nltp-ashes/Western-Goods/releases/tag/fix-vanilla-shader) + **2024.11.04** * `level.map_get_object_spots_by_id(id)` to get all map object spots associated with `id` diff --git a/gamedata/shaders/r3/models_selflight_det.s b/gamedata/shaders/r3/models_selflight_det.s new file mode 100644 index 00000000..dd9f48cc --- /dev/null +++ b/gamedata/shaders/r3/models_selflight_det.s @@ -0,0 +1,21 @@ +function normal (shader, t_base, t_second, t_detail) + shader:begin ("deffer_model_flat","deffer_base_flat") + : fog (false) + : emissive (true) +-- shader:sampler ("s_base") :texture (t_base) + shader:dx10texture ("s_base", t_base) + shader:dx10sampler ("smp_base") + shader:dx10stencil ( true, cmp_func.always, + 255 , 127, + stencil_op.keep, stencil_op.replace, stencil_op.keep) + shader:dx10stencil_ref (1) + +end + +function l_special (shader, t_base, t_second, t_detail) + shader:begin ("shadow_direct_model", "accum_emissive_det") + : zb (true,false) + : fog (false) + : emissive (true) + +end