▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Viewfinder
Viewfinder

Viewfinder

A shader debugging mod for Iris on Fabric that exposes an HTTP API and in-game commands for external tools and scripts to inspect, test, and automate shader development workflows.

46
0

Viewfinder

A shader debugging mod for Iris on Fabric that exposes an HTTP API and in-game commands for external tools and scripts to inspect, test, and automate shader development workflows.

Features

  • Shader reload and error list - trigger shader reloads and capture compilation errors
  • GPU timing metrics - collect per-pass GPU timing data (collects multiple frames to average out noise)
  • Texture dumping - export textures as PNG or raw binary by name (colortex0, or custom texture)
  • SSBO buffer dumping - dump shader storage buffer objects to disk for analysis
  • Screenshot scheduling - schedule screenshots with configurable frame delay (for PT)
  • Patched shader listing - find which patched shader errored programmatically by listing all and searching for "errored"

Installation

  1. Install Fabric Loader (≥ 0.18.4) for Minecraft 26.1
  2. Install Fabric API and Iris (which requires Sodium)
  3. Drop the Viewfinder .jar into your mods/ folder

Usage

In-game commands

All commands are registered under /viewfinder:

CommandDescription
/viewfinder statusShow current shaderpack name, error count, and API address
/viewfinder reloadReload shaders and report any compilation errors
/viewfinder errorsList all captured shader errors
/viewfinder screenshot [frames]Take a screenshot (optionally delayed by N frames)
/viewfinder screenshot resultShow the path of the last screenshot
/viewfinder metricsDisplay per-pass GPU timings
/viewfinder ssbo listList active SSBO buffers
/viewfinder ssbo dump <index>Dump an SSBO buffer to ssbo_dumps/
/viewfinder texture listList available colortex and custom textures
/viewfinder texture dump name <name> [raw]Dump a texture by name (PNG or raw)
/viewfinder texture dump id <id> [raw]Dump a texture by GL id (PNG or raw)
/viewfinder patched_shadersList Iris patched shader files

HTTP API

Viewfinder starts an HTTP server on localhost:7150. A full OpenAPI 3.0 spec is available at GET /.

MethodEndpointDescription
GET/OpenAPI 3.0 specification
GET/statusShaderpack status (loaded pack name)
POST/reloadReload shaders, returns success and errors
GET/errorsList captured shader errors
POST/screenshot?frames=NSchedule a screenshot (default: next frame)
GET/screenshot/resultPath to the last saved screenshot
GET/metricsGPU timing metrics
GET/list-ssboList active SSBO buffers
POST/ssbo?index=NDump SSBO at given index
GET/list-texturesList available textures
POST/texture?name=...&raw=boolDump texture by name
POST/texture?id=...&raw=boolDump texture by GL id
GET/patched_shadersList patched shader files

All responses are JSON. Dumped files (textures, SSBOs, screenshots) are written to subdirectories inside the Minecraft game directory.

Совместимость

Minecraft: Java Edition

26.1.x

Платформы

Поддерживаемые окружения

Клиент

Создатели

Детали

Лицензия:MIT
Опубликован:2 недели назад
Обновлён:2 недели назад
Главная