Table of Contents

Method CombineBiomeMask

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

CombineBiomeMask(RenderTexture, Texture)

Applies a biome-mask adjustment texture onto an existing base biome mask in place.

public static void CombineBiomeMask(RenderTexture baseMask, Texture adjustmentTex)

Parameters

baseMask RenderTexture

The destination biome mask to modify. The texture must already exist and be writable because the final result is drawn back into this render target.

adjustmentTex Texture

The adjustment texture to blend with the base mask. This is typically created from biomeMaskAdjustments.

Remarks

The method first copies baseMask into a temporary render texture, then runs the hidden combine shader with both the original mask copy and the adjustment texture bound as inputs. This avoids reading from and writing to the same render target in one pass. Temporary resources created by the method are released before it returns.