From b944425a1dcf4f46b7a94ca271167b1ff459c90a Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 18 Nov 2023 08:49:55 -0800 Subject: [PATCH] Work on the mirror material for endlrain --- zpak001.pk3dir/scripts/endlrain.shader | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/zpak001.pk3dir/scripts/endlrain.shader b/zpak001.pk3dir/scripts/endlrain.shader index 7018c63..6ec391d 100644 --- a/zpak001.pk3dir/scripts/endlrain.shader +++ b/zpak001.pk3dir/scripts/endlrain.shader @@ -1,10 +1,21 @@ streetglass { - portal + +if $programs + polygonOffset 1 + diffusemap "textures/sfx/mirror.tga" + normalmap "textures/sfx/mirror_n.tga" + { - map glass_dark - blendFunc add - tcMod scale -4.5 1.0 - depthWrite + program lightmapped_reflect + map $reflection } + { + map textures/sfx/reflection.tga + blendFunc filter + tcGen environment + } +else + portal +endif }