Remove shader packs

A developer of Iris showed that Horizon's shader pack code was written from
Iris's source. This removes it: the horizon-shaderpack crate, Java pack
loading and its render stages, Horizon's own WGSL packs and the example
packs, the Shader Packs screen and its option, the launcher's shader pack
browsing and installing, and the docs about them. Shader packs may come
back later as a clean-room rewrite.

The vanilla renderer and its post-processing (resolution scale, FXAA) are
unchanged. Options files that name a pack load and drop the key; the
launcher reads manifests that list a shader pack, and files in
`shaderpacks/` are never deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-24 16:15:39 +02:00
parent 535f2d2a04
commit 4e7c25bb55
123 changed files with 291 additions and 19190 deletions
+1 -14
View File
@@ -3,7 +3,7 @@ import subprocess
import unittest
from tools.test_dispatch import failure_summary
from tools.test_client_graphics import graphics_failure_summary, validate_shader_report
from tools.test_client_graphics import graphics_failure_summary
from tools.test_culling_rays import FixtureTimeout
@@ -26,19 +26,6 @@ class FixtureDiagnosticTests(unittest.TestCase):
'ready_client_ticks': 0})
self.assertNotIn('private', json.dumps(result))
def test_required_shaders_cannot_pass_with_disabled_unknown_or_different_pack(self):
report = {'shader_required': True, 'iris_capture_status': 'available',
'iris_shaders_enabled': True, 'iris_expected_pack_matches': True}
validate_shader_report(report, True)
for field, bad in [('shader_required', False), ('iris_capture_status', 'unavailable'),
('iris_shaders_enabled', False), ('iris_shaders_enabled', 'true'),
('iris_expected_pack_matches', False)]:
with self.subTest(field=field, bad=bad), self.assertRaises(AssertionError):
validate_shader_report({**report, field: bad}, True)
with self.assertRaises(AssertionError):
validate_shader_report({}, True)
validate_shader_report({}, False)
def test_graphics_diagnostics_separate_demo_auth_and_exclude_methods_messages(self):
output = '\n'.join([
'com.mojang.authlib.exceptions.InvalidCredentialsException: private-token',