]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
erbium: lightmaps are standalone stages illwieckz/erbium
authorThomas Debesse <dev@illwieckz.net>
Sat, 18 Jan 2020 09:08:45 +0000 (10:08 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sat, 18 Jan 2020 09:08:48 +0000 (10:08 +0100)
the previous way they were written would only work
on DarkPlaces since it only has partial shader support
and no real stage support

scripts/map_erbium.shader

index 7ec886b329d12eeed2b9e4106c37bd189bdcec67..87720441620f11be1f1b4d9828bbbbd7002183af 100644 (file)
@@ -271,11 +271,16 @@ textures/map_erbium/fern
        nopicmip
 
        {
-               map $lightmap
                map textures/map_erbium/fern
                blendFunc blend
                rgbgen identity
        }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
 }
 
 textures/map_erbium/ivy
@@ -293,11 +298,16 @@ textures/map_erbium/ivy
        nopicmip
 
        {
-               map $lightmap
                map textures/map_erbium/ivy
                blendFunc blend
                rgbgen identity
        }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
 }
 
 textures/map_erbium/leaves
@@ -311,11 +321,16 @@ textures/map_erbium/leaves
        nopicmip
 
        {
-               map $lightmap
                map textures/map_erbium/leaves
                blendFunc blend
                rgbgen identity
        }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
 }
 
 textures/map_erbium/leaves2
@@ -329,11 +344,16 @@ textures/map_erbium/leaves2
        nopicmip
 
        {
-               map $lightmap
                map textures/map_erbium/leaves2
                blendFunc blend
                rgbgen identity
        }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
 }
 
 textures/map_erbium/singular-leaf
@@ -346,11 +366,16 @@ textures/map_erbium/singular-leaf
        nopicmip
 
        {
-               map $lightmap
                map textures/map_erbium/singular-leaf
                blendFunc blend
                rgbgen identity
        }
+       {
+               map $lightmap
+               rgbGen identity
+               tcGen lightmap
+               blendfunc filter
+       }
 }
 
 textures/map_erbium/black-tiles