Three small hygiene items flagged by external code-review reports
during the sky/weather investigation:
1. CullFace state leak in SkyRenderer.RenderPass.
Disabled CullFace at the start of the sky pass without restoring it
on exit. Benign today — the global convention in this codebase is
CullFace=off and subsequent renderers (InstancedMeshRenderer,
StaticMeshRenderer) explicitly enable on entry / disable on exit —
but a future caller assuming culling stays on across the sky pass
would have silently broken. Wrap with an IsEnabled save / Enable
restore using TextRenderer.cs's pattern.
2. Stale comment in SubMeshGpu.SurfTranslucency doc.
Said "the shader multiplies output alpha by (1 - x)". After commit
|
||
|---|---|---|
| .. | ||
| debug_line.frag | ||
| debug_line.vert | ||
| mesh.frag | ||
| mesh.vert | ||
| mesh_instanced.frag | ||
| mesh_instanced.vert | ||
| particle.frag | ||
| particle.vert | ||
| sky.frag | ||
| sky.vert | ||
| terrain.frag | ||
| terrain.vert | ||
| ui_text.frag | ||
| ui_text.vert | ||