Show fallout in WebGL alt view

This commit is contained in:
scamiv
2026-05-27 02:15:59 +02:00
parent 93378846c8
commit 6ac8d4d101
@@ -3357,6 +3357,9 @@ export class TerritoryWebGLRenderer {
if (u_alternativeView) { if (u_alternativeView) {
// Alt view: terrain + borders only, no territory fill // Alt view: terrain + borders only, no territory fill
vec3 color = baseTerrainColor; vec3 color = baseTerrainColor;
if (owner == 0u && hasFallout) {
color = mix(baseTerrainColor, u_fallout.rgb, u_alpha);
}
if (!u_debugDisableAllBorders && !u_debugDisableStaticBorders && owner != 0u && isBorder) { if (!u_debugDisableAllBorders && !u_debugDisableStaticBorders && owner != 0u && isBorder) {
// Only draw borders, not territory fill // Only draw borders, not territory fill
uint relationAlt = relationCode(owner, uint(u_viewerId)); uint relationAlt = relationCode(owner, uint(u_viewerId));