Per-surface env_cubemap selection for envmap reflections #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we use a single skybox-derived cubemap as a global fallback for all
$envmapreflections. Source maps containenv_cubemapentities at specific positions, each with a baked cubemap texture stored in the BSP's cubemap lump. The engine selects the nearestenv_cubemapto each surface for its reflections.Requirements
env_cubemapentities from the BSP entity lump (position + cubemap size)$envmap "env_cubemap", select the nearestenv_cubemapand assign its cubemap textureContext
env_cubemapentities are placed by mappers at key reflection points$envmap "env_cubemap"(which means "use nearest")c{x}_{y}_{z}.vtfclient/src/bsp/loader.js(loadSkyboxCubemap,_applyPendingEnvmaps)