Skip to content

shaders tutorial for Minecraft, including Volume Cloud, Screen Space Reflection, Bloom

Notifications You must be signed in to change notification settings

AKGWSB/Hello-Minecraft-Shaders

Repository files navigation

Hello Minecraft Shaders

Hello Minecraft Shaders (HMS) is a simple tutorial (including .md and .pdf files) about how to programming shaders for Minecraft, based on Optifine mod environment

image-20211231142134849

it was written when my junior years, which I most likely to named it 摆烂的大三. so it may has some problems including poor graphic performance, buggy rendering effect and hard-to-read code, what's more? I have no idea how it can compatible with Iris mod

Features

Volume Cloud with Ray Marching (tracing on 1/4 resolution for speed) :

image-20211228173111194

Atmosphere and fog simulate:

image-20211227105950704

Screen Space Reflection (SSR) with ray marching and Fresnel Reflection:

image-20211227104528872

PCF soft shadow mapping:

image-20211227103553606

Bloom with Mipmap, down sample and gauss blur:

image-20211227105430895

Caustics simulate with noise texture and sine & cosine wave:

Install it to MC

  1. first u need install OptifineHD mod
  2. then copy the shader package file to game directory .minecraft/shaderpacks
  3. select it in game meun:vedio setting --> shades

Reading online

从0开始编写minecraft光影包(0)GLSL,坐标系,光影包结构介绍

从零开始编写minecraft光影包(1)基础阴影绘制

从零开始编写minecraft光影包(2)阴影优化

从零开始编写minecraft光影包(3)基础泛光绘制

从零开始编写minecraft光影包(4)泛光性能与品质优化

从零开始编写minecraft光影包(5)简单光照系统,曝光调节,色调映射与饱和度

从零开始编写minecraft光影包(6)天空绘制

从零开始编写minecraft光影包(7)基础水面绘制

从零开始编写minecraft光影包(8)中级水面绘制 水下阴影与焦散

从零开始编写minecraft光影包(9)高级水面绘制 反射与屏幕空间反射

Reference

[1] 白玉楼之梦 - szszss' blog, "如何编写Shadersmod光影包"

[2] sp614x (Github), "optifine document"

[3] iq (shadertoy), "raymarching clouds with fbm"

About

shaders tutorial for Minecraft, including Volume Cloud, Screen Space Reflection, Bloom

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages