Class EnvironmentMapArray
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Packs environment maps with separate cube textures into one cube map array.
csharp
public static class EnvironmentMapArrayInheritance
object ← EnvironmentMapArray
Methods
Pack(IReadOnlyList<SceneEnvMap>, MaterialLoader, ILogger)
Copies the cube textures into one array sized to the smallest cube, and points each environment map at it. Cubes in another format are skipped.
csharp
public static RenderTexture? Pack(IReadOnlyList<SceneEnvMap> envMaps, MaterialLoader materialLoader, ILogger logger)Parameters
envMaps IReadOnlyList<SceneEnvMap>
Environment maps with their own cube textures.
materialLoader MaterialLoader
Material loader the cube textures are evicted from.
logger ILogger
Logger for skipped environment maps.
Returns
The array, or null if nothing was packed.

