mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 10:43:27 +00:00
Show fallout in WebGL alt view
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user