Split D2K shroud/fog rendering and fix shroud blending.

This commit is contained in:
Paul Chote
2015-11-15 11:35:06 +00:00
parent 56a2f4c9a3
commit 1dca3f1206
3 changed files with 29 additions and 21 deletions

View File

@@ -60,7 +60,6 @@
Name: shroud Name: shroud
Filename: DATA.R8 Filename: DATA.R8
Offset: 12007 Offset: 12007
InvertColor: true
FogPaletteFromR8@fog: FogPaletteFromR8@fog:
Name: fog Name: fog
Filename: DATA.R8 Filename: DATA.R8

View File

@@ -8,11 +8,11 @@
DefeatMusic: score DefeatMusic: score
TerrainGeometryOverlay: TerrainGeometryOverlay:
ShroudRenderer: ShroudRenderer:
ShroudVariants: typea, typeb, typec, typed ShroudVariants: shrouda, shroudb, shroudc, shroudd
FogVariants: typea, typeb, typec, typed FogVariants: foga, fogb, fogc, fogd
Index: 11, 3, 7, 9, 6, 13, 12, 14, 4, 8, 2, 1, 5, 10 Index: 11, 3, 7, 9, 6, 13, 12, 14, 4, 8, 2, 1, 5, 10
OverrideFullShroud: full OverrideFullShroud: shroudfull
OverrideFullFog: full OverrideFullFog: fogfull
ShroudBlend: Multiply ShroudBlend: Multiply
Faction@Random: Faction@Random:
Name: Any Name: Any

View File

@@ -362,28 +362,37 @@ resources:
Offset: -16,-16 Offset: -16,-16
shroud: shroud:
typea: DATA.R8 Defaults:
BlendMode: Subtractive
Offset: -16,-16
Length: 14
shrouda: DATA.R8
Start: 40 Start: 40
Length: 14 shroudb: DATA.R8
Offset: -16,-16
BlendMode: Multiply
typeb: DATA.R8
Start: 56 Start: 56
Length: 14 shroudc: DATA.R8
Offset: -16,-16
BlendMode: Multiply
typec: DATA.R8
Start: 72 Start: 72
Length: 14 shroudd: DATA.R8
Offset: -16,-16
BlendMode: Multiply
typed: DATA.R8
Start: 88 Start: 88
Length: 14 shroudfull: fullshroud.shp
Offset: -16,-16 Offset: 0,0
Length: 1
foga: DATA.R8
BlendMode: Multiply BlendMode: Multiply
full: fullshroud.shp Start: 40
fogb: DATA.R8
BlendMode: Multiply BlendMode: Multiply
Start: 56
fogc: DATA.R8
BlendMode: Multiply
Start: 72
fogd: DATA.R8
BlendMode: Multiply
Start: 88
fogfull: fullshroud.shp
BlendMode: Multiply
Offset: 0,0
Length: 1
rockcraters: rockcraters:
rockcrater1: DATA.R8 rockcrater1: DATA.R8