Camellia
Camellia 是一款用于 Minecraft 的路径追踪光影。
这是我基于四元射线追踪(Quad Raytracing)在 Minecraft 中的实现,利用 H-PLOC 论文 中的前沿技术,直接在 GPU 上构建 BVH。
尽管我尽了最大努力,性能仍然不够理想,尚未适合实时游戏使用。Camellia 旨在用于研究、实验和学习。

功能
- 带有类光谱焦散效果和景深(DOF)的参考路径追踪器。
- QuadRT 允许正确捕获和追踪所有几何体,不同于传统体素光线追踪那样通过硬编码模型做出妥协。
- 支持各种方块,包括自定义模型、实体和玩家。
- 可能具有极好的模组兼容性,但尚未完全测试。
使用方法
这不是一个实时光影。你需要保持静止并让光影累积样本,类似于 Blender 渲染。
按 F1 开始累积并冻结输入和几何体,这样场景将不再发生变化。
一些加快渲染速度的提示:
- 如果可能,请使用旁观者模式:特别是如果你安装了为角色添加装饰物的模组。
- 禁用云层,因为每个天空样本也会采样云层(将在未来的更新中改进)
截图
截图由 Patrix 128x 拍摄

要求
- 已安装 Iris 的 Minecraft。
- 支持 GLSL 460、计算着色器、SSBOs、自定义图像以及
GL_KHR_shader_subgroup_* 的 GPU 和驱动程序。
- NVIDIA 显卡经过全面测试(在 5080 上),而 AMD 和 Intel 显卡尽力支持但未进行测试。
安装
- 下载仓库 ZIP 或从 Modrinth 下载并解压。
- 将解压后的 Camellia 文件夹放入
.minecraft/shaderpacks/ 中。打包文件夹应包含一个 shaders/ 目录。
- 在 Iris 的光影包菜单中选择 Camellia。
许可证
特别感谢 sixthsurge 允许我在我的光影中使用他们的云层!查看 Photon,一款令人惊讶地快速且惊艳的实时光影。
Camellia 的原始作品采用源代码可用许可证发布,详见 LICENSE;它不是开源许可证。第三方代码和研究仍受其各自条款约束。请参阅 THIRD_PARTY_NOTICES.md 和 licenses/。
我希望人们能从 Camellia 中学习(尤其是它的不足之处),因此该许可证允许你阅读和修改源代码以供个人使用。如果你想发布衍生作品,必须联系我获取许可。详情请参阅许可证。
支持开发
如果 Camellia 对你有用,请在 GitHub 上赞助我。也请看看我的其他项目!
Camellia
Camellia is a pathtracer shader for Minecraft.
It's my take on Quad Raytracing in Minecraft, using the state of the art techniques from the H-PLOC paper to build a BVH directly on the GPU.
While I tried my best, performance is still suboptimal and not yet suitable for real-time gameplay. Camellia is intended for research, experimentation, and learning.

Features
- Reference pathracer with spectral-like caustics and DOF.
- QuadRT allows all geometry to be captured and traced correctly, unlike traditional voxel raytracing which compromises with hardcoded models.
- Supports all kinds of blocks, including custom models, entities and players.
- Probably very good mod support, not fully tested.
Usage
This is NOT a realtime shader. You will need to stand still and let the shader accumulate samples, like a render in Blender.
Pressing F1 starts the accumulation and freezes input and geometry, so that the scene can't change anymore.
Some tips for faster renders:
- When possible, use spectator mode: especially if you have mods that add decorations to your player.
- Disable clouds, as every sky sample also samples clouds (will be improved in a future update)
Screenshots
Screenshots taken with Patrix 128x

Requirements
- Minecraft with Iris installed.
- A GPU and driver supporting GLSL 460, compute shaders, SSBOs, custom images, and
GL_KHR_shader_subgroup_*.
- NVIDIA is fully tested (on a 5080), while AMD and Intel are best-effort targets and are not tested.
Installation
- Download the repository ZIP or from Modrinth and extract it.
- Place the extracted Camellia folder in
.minecraft/shaderpacks/. The pack folder should contain a shaders/ directory.
- Select Camellia in Iris's Shader Packs menu.
License
Special thanks to sixthsurge for allowing me to use their clouds in my shader! Check out Photon for a surprisingly fast and stunning realtime shader.
Camellia's original work is shared under the source-available license in LICENSE; it is not an open-source license. Third-party code and research remain under their own terms. See THIRD_PARTY_NOTICES.md and licenses/.
I want people to learn from Camellia (especially what is wrong with it) so the license allows you to read and modify the source code for personal use. If you want to publish a derivative, you must contact me for permission. See the license for details.
Support development
If Camellia is useful to you, sponsor me on GitHub.Check out my other projects too!
评论 0
登录后参与评分
还没有评论,来抢沙发吧