Optionalopts: GeometryFeatureOptionsReadonlynameStable identifier used for lookup, signature hashing, and pass-name keying.
When false, the feature is skipped each frame. Toggling triggers a cached-graph invalidation.
Whether GPU occlusion culling is currently on.
The previous frame's Hi-Z pyramid + the view-projection its depth was rendered with, for other cull paths (terrain patch culling) to share. Null until the first pyramid build, after a resize, or with occlusion culling off. Valid only when the current frame size still matches.
Register an ADDITIVE source of instanced batches, merged with the
constructor's instancedBatches option every frame. Lets independent
systems (terrain foliage, prop scatterers) contribute instanced geometry
without owning the feature's configuration. Returns an unregister fn.
Toggle GPU occlusion culling at runtime. Disabling falls back to plain
drawIndexed next frame; re-enabling rebuilds the pyramid before it culls
again (one warm-up frame).
Release GPU resources.
Deferred geometry pass for material-bearing meshes. Reads
frame.opaqueand writes the GBuffer intoframe.gbuffer. Whenframe.gbufferis already set (e.g. by a preceding voxel or marching-cubes feature) this feature loads it and overdraws — letting a deferred scene mix voxel terrain with regular mesh objects.