Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
e76ded5
Implement CPU backface culling
xCollateral Oct 4, 2024
845e86b
Use VertexBuffer usage to determine memory type
xCollateral Sep 20, 2024
41c3d58
Improve clouds rendering
xCollateral Sep 20, 2024
5921d83
Use sorted index buffer on immediate rendering if needed
xCollateral Oct 11, 2024
863eaeb
Refactor skip allocation mixin to prevent null pointer exception
xCollateral Oct 12, 2024
5774bf3
Implement Fabric Rendering API
xCollateral Oct 12, 2024
5c11064
Update default config
xCollateral Oct 12, 2024
de23916
Add RenderAttachedBlockView interface implementation
xCollateral Oct 12, 2024
a290169
Implement IndexBuffer resize
xCollateral Oct 13, 2024
ef9388e
Add missing FAPI module
xCollateral Oct 13, 2024
a7ffe3d
Add backface culling setting's translatable components
xCollateral Oct 13, 2024
0ef9f9a
Use normal to calculate quad facing
xCollateral Oct 13, 2024
ca9cf7b
Add missing normal vector copy
xCollateral Oct 13, 2024
4ec5d6a
Improve glsl conversion
xCollateral Oct 21, 2024
eedfa54
Improve compatibility
xCollateral Oct 21, 2024
5c8bbfe
Add image format info
xCollateral Oct 21, 2024
b56a22d
Use custom color resolver if requested
xCollateral Oct 21, 2024
6c4fe7d
Refactor pipeline builder and creation
xCollateral Nov 9, 2024
48dbc22
Refactor: remove unused interface
xCollateral Nov 9, 2024
51fa204
Fix profiler result missing entries
xCollateral Nov 13, 2024
aebc01d
Add clouds shader
xCollateral Nov 17, 2024
39a53cc
Refactor terrain shader's uniform name
xCollateral Nov 17, 2024
31ef3de
Minimize upload and layout transition command buffers used per frame
xCollateral Nov 17, 2024
0a9168f
Use raw memory for section draw parameters
xCollateral Nov 17, 2024
34b8e0a
Use optimal swapchain image count
xCollateral Nov 17, 2024
2302da6
Revert clouds render distance
xCollateral Nov 18, 2024
abee6c8
Add shader namespace check
xCollateral Nov 18, 2024
52dd96f
Fix out of bounds error
xCollateral Nov 18, 2024
8da1470
Fix incorrect entity shaders
xCollateral Nov 18, 2024
3ac10f3
Use fixed size staging buffer
xCollateral Nov 23, 2024
3cfe478
Fix crash when clouds mesh is empty
xCollateral Nov 24, 2024
100fde1
Bump version
xCollateral Nov 24, 2024
1bbd0ac
Use non cached memory type
xCollateral Nov 24, 2024
349de86
Use level renderer light values to improve compatibility
xCollateral Nov 25, 2024
1139f7d
Set bound framebuffer on begin rendering
xCollateral Nov 25, 2024
4c47fb6
Improve mixin compatibility
xCollateral Nov 25, 2024
868bbf1
Reset blend function before drawing
xCollateral Nov 25, 2024
3f37e93
Improve framebuffer compatibility
xCollateral Dec 10, 2024
8b41398
Fix crash on setting texture parameter
xCollateral Dec 10, 2024
20dcc21
Implement missing methods
xCollateral Dec 10, 2024
1ad99e0
Improve set viewport compatibility
xCollateral Dec 10, 2024
ac508a7
Improve shader compatibility
xCollateral Dec 10, 2024
66bd4a4
Restart render pass if terminated early
xCollateral Dec 10, 2024
ab6c7d1
Remove reloadShaders injection
xCollateral Dec 10, 2024
1c189cf
Implement data cache for biome data
xCollateral Dec 10, 2024
70d5cdc
Bump fabric versions
xCollateral Dec 10, 2024
d8f2073
Refactor window mode option
xCollateral Dec 13, 2024
6ee4b39
Refactor CircularIntList
xCollateral Dec 21, 2024
1799d82
Fix wrong sampler binding
xCollateral Dec 21, 2024
2350b4a
Update Minecraft version dependency
xCollateral Dec 21, 2024
b96e46d
Move end frame injection
xCollateral Dec 21, 2024
cd876d3
Bump version
xCollateral Dec 21, 2024
4319366
Improve gl texture compatibility
xCollateral Dec 22, 2024
211ada8
Fix image upload sync bugs
xCollateral Dec 22, 2024
16e8cda
Add method overwrite
xCollateral Dec 22, 2024
5231929
Fix: buffer size
xCollateral Dec 22, 2024
93ef2a6
Fix polygon mode mixin using face as mode (#516)
Fox2Code Jan 15, 2025
6ce2277
Update gradle and fabric-loom versions
xCollateral Jan 16, 2025
4bfd020
Update FAPI version
xCollateral Jan 16, 2025
e0cfbbf
Bump version
xCollateral Jan 16, 2025
c7cbab6
Use uint32 index buffer type if required
xCollateral Jan 18, 2025
a42450b
Implement flush method
xCollateral Feb 2, 2025
0506db2
Improve quad writing performance
xCollateral Feb 2, 2025
51664ff
Update file permissions
xCollateral Feb 6, 2025
857607f
Fix early return on queue selection
xCollateral Feb 9, 2025
03d470e
Add file not found exception
xCollateral Feb 9, 2025
acc0699
Add src upload offset check
xCollateral Feb 9, 2025
b416317
Revert "Add file not found exception"
xCollateral Feb 9, 2025
df2e380
Add getTexParameteri redirect
xCollateral Feb 26, 2025
78cc6f1
Fix polygon offset swapped parameters
xCollateral Mar 2, 2025
318d5ca
Improve mod compatibility
xCollateral Mar 2, 2025
b35e7a3
Use 16 bytes vertex format for terrain
xCollateral Mar 2, 2025
f88af35
Bump version
xCollateral Mar 2, 2025
5d97443
Fix terrain vertex format errors
xCollateral Mar 2, 2025
e317a24
Fix rendertype_leash bug
xCollateral Mar 11, 2025
e42a5da
Update texture sampler on upload
xCollateral Mar 11, 2025
abbdcc8
Fix: apply correct light data on quad shading
xCollateral Mar 11, 2025
5d2315d
Fix: apply quad transform if needed
xCollateral Mar 11, 2025
5441949
Add flush batched cmds
xCollateral Mar 11, 2025
320e32f
Fix: apply filtering state on reload
xCollateral Mar 16, 2025
3a0d4b8
Improve program and uniform compatibility
xCollateral Mar 16, 2025
fd3568c
Fix FAPI fluid rendering implementation
xCollateral Mar 16, 2025
11a19bb
Add builder threads setting
xCollateral May 10, 2025
b8eb72e
Fix y-axis biome tint bug
xCollateral May 10, 2025
ed80bc4
Refactor VRenderSystem
xCollateral May 11, 2025
d0f4715
Refactor:
xCollateral May 11, 2025
df460ba
Refactor:
xCollateral May 11, 2025
e2a1fc2
Refactor downloadTexture
xCollateral May 11, 2025
81b5668
Add image debug label
xCollateral May 11, 2025
6c854fa
Fix upload size
xCollateral May 21, 2025
153879d
Refactor render state mixins
xCollateral May 21, 2025
bd4db35
Fix missed global block entities set update
xCollateral May 22, 2025
91bf9e8
Fix beacon beam rendering bug
xCollateral May 22, 2025
f23855f
Use cloud texture color
xCollateral May 22, 2025
d5cf530
Fix F3 + L (default profiler) crash (#614)
Haberno Jul 5, 2025
e55e432
Port to 1.21.2
xCollateral Nov 17, 2024
3fa7807
Port to 1.21.4
xCollateral Dec 10, 2024
281d129
Update FRAPI implementation
xCollateral Feb 9, 2025
02f72f5
Rename and refactor gl emulation classes
xCollateral Nov 13, 2025
ff6a1d8
Port to 1.21.10
xCollateral Nov 14, 2025
d0175f3
Set lwjgl stack size to 256 to prevent crash on nvidia
xCollateral Nov 14, 2025
14ef9cd
Add method overwrite
xCollateral Nov 14, 2025
41e75fe
Port Fabric API implementation
xCollateral Nov 18, 2025
0535bd2
Fix polygon offset inverted parameters
xCollateral Nov 23, 2025
ca1c505
Mitigate uniform upload sync hazard
xCollateral Nov 23, 2025
b6fe3ae
Add "disable animations" option
xCollateral Nov 23, 2025
2992891
Fix uniform upload bug when loading new dimension
xCollateral Nov 24, 2025
d9b2844
Remove debug code
xCollateral Nov 24, 2025
29c9d77
Fix NPE when uniform buffer is not bound
xCollateral Nov 24, 2025
2f98a8d
Add chunk memory stats debug entry
xCollateral Nov 24, 2025
39fe598
Use correct descriptor type on descriptor pool creation
xCollateral Nov 25, 2025
ad0fdc0
Add sampler name
xCollateral Nov 25, 2025
7a500e9
Add fallback to prevent crash
xCollateral Nov 29, 2025
bbf81b6
Improve compatibility with GlTexture
xCollateral Nov 29, 2025
69f6b76
Prevent crash when texture format is unrecognized
xCollateral Nov 29, 2025
b044f06
Extend and refactor sampler management
xCollateral Jan 4, 2026
da9395d
Revert direct mem copy to fix perf regression
xCollateral Jan 4, 2026
9be5fe8
Improve cmd buffer sync
xCollateral Jan 4, 2026
e0cf951
Add version string
xCollateral Jan 4, 2026
1447cf4
Fix swapchain recreation issues on some device
xCollateral Jan 4, 2026
8bd1b9d
Fix dynamic rendering missing layout transition
xCollateral Jan 4, 2026
f375b8f
Use automatic image indexing
xCollateral Jan 5, 2026
2eabf9a
Prevent crash if texture id is invalid
xCollateral Jan 5, 2026
00f3013
Fix 1 leak
BloCamLimb Dec 19, 2025
397186a
Fix out of stack memory error
xCollateral Jan 5, 2026
82330c2
Add uniform types
xCollateral Jan 5, 2026
d54f3cb
Add workaround for glsl reserved keywords
xCollateral Jan 5, 2026
d5fe057
Remove debug code
xCollateral Jan 5, 2026
4a76da2
Update icon identifier
xCollateral Jan 5, 2026
a2a2ee8
Bump version
xCollateral Jan 5, 2026
3f293ed
Bind light texture on terrain rendering
xCollateral Jan 6, 2026
45b97c3
Mitigate translucency sorting issue
xCollateral Jan 25, 2026
7bf69ce
Add missing token
xCollateral Jan 25, 2026
fdbf57f
Move stack size setting earlier
xCollateral Jan 25, 2026
4ad7a97
Improve frame flow
xCollateral Jan 26, 2026
4cd44e7
Bump version
xCollateral Feb 1, 2026
abfdb11
Update mc dependency versions
xCollateral Feb 1, 2026
922114a
Fix image path
xCollateral Feb 1, 2026
160fcb1
Fix crash on clear when no framebuffer is bound
xCollateral Feb 1, 2026
5a4fa04
Refactor shader loading from path
xCollateral Feb 1, 2026
74a077a
Fix: clear framebuffer if needed before reading
xCollateral Feb 1, 2026
c2e7860
Bump version
xCollateral Feb 17, 2026
babff0c
Fix memory leak on section upload
xCollateral Feb 16, 2026
01c898d
Refactor option widgets
xCollateral Feb 16, 2026
0ffef6d
Improve image layout tracking and transitioning
xCollateral Feb 16, 2026
2e46215
Fix typo
xCollateral Feb 16, 2026
d029353
Add formats
xCollateral Feb 17, 2026
78a7212
Improve uniform compatibility in case of no bound buffer
xCollateral Feb 17, 2026
6bc78c7
Refactor
xCollateral Feb 17, 2026
fc452ad
Use quad normal instead of facing
xCollateral Feb 17, 2026
cd0f2e6
Update TerrainBuilder
xCollateral Feb 24, 2026
d642e77
Fix bug on texture binding
xCollateral Feb 24, 2026
9417f91
Fix bug with texture sampling
xCollateral Mar 1, 2026
374ddfc
Improve terrain rendering command recording
xCollateral Mar 1, 2026
37e7ef1
Fix index buffer allocation bug
xCollateral Mar 3, 2026
a19291b
Add update checker
xCollateral Mar 3, 2026
8c76e02
Bump version
xCollateral Mar 3, 2026
2283870
Fix missed draw parameters update on upload
xCollateral Mar 4, 2026
62a5106
Add another AMD device id
whitebelyash Mar 16, 2026
13e925f
Add vendor ids for non-PC/exotic vendors
whitebelyash Mar 16, 2026
0e2447f
Add device name to debug system specs
xCollateral Mar 19, 2026
687e068
Update Framebuffer
xCollateral Mar 19, 2026
681391a
Bump version
xCollateral Mar 21, 2026
ca548ce
Improve glsl translation
xCollateral Mar 22, 2026
6b2db6e
Fix out of stack memory error on layout transitions
xCollateral Mar 22, 2026
7a1e520
Add int index type for lines render type
xCollateral Mar 24, 2026
1502f63
Add missing gl mixin
xCollateral Mar 24, 2026
2980232
Bump version
xCollateral Mar 28, 2026
56d4ef2
Add files via upload
ssbtt114514 Apr 5, 2026
bb3f405
Add files via upload
ssbtt114514 Apr 5, 2026
683a683
Add files via upload
ssbtt114514 Apr 5, 2026
e5367f6
创建 buildvk11.yml
ssbtt114514 Apr 5, 2026
7a16cc5
更新 gradle.properties
ssbtt114514 Apr 5, 2026
a3be7c8
创建 build_release.yml
ssbtt114514 Apr 5, 2026
d3fd515
更新 build_release.yml
ssbtt114514 Apr 5, 2026
aebcc10
创建 build_all.yml
ssbtt114514 Apr 5, 2026
9be5494
ssbtt114514 Apr 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
78 changes: 78 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Build All Minecraft Versions

on:
workflow_dispatch: # 手动触发
inputs:
version:
description: 'VulkanMod 版本号(如 0.6.2)'
required: true
default: '0.6.2'

permissions:
contents: write

jobs:
build-all:
runs-on: ubuntu-latest
strategy:
matrix:
mc_version:
- 1.18.2
- 1.19.2
- 1.19.4
- 1.20.x
- 1.21
fail-fast: false # 一个失败不影响其他版本

steps:
- name: 检出 ${{ matrix.mc_version }} 分支
uses: actions/checkout@v4
with:
ref: ${{ matrix.mc_version }}

- name: 设置 JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin

- name: 修改版本号为 ${{ github.event.inputs.version }}
run: |
# 修改 gradle.properties 中的版本号
sed -i 's/^mod_version=.*/mod_version=${{ github.event.inputs.version }}/' gradle.properties 2>/dev/null || \
sed -i 's/^version=.*/version=${{ github.event.inputs.version }}/' gradle.properties 2>/dev/null || \
echo "未找到版本号字段,请检查 gradle.properties"
cat gradle.properties | grep -E "mod_version|version" || echo "警告:未找到版本号定义"

- name: 赋予 gradlew 执行权限
run: chmod +x gradlew

- name: 构建 Mod JAR
run: ./gradlew build

- name: 查找生成的 JAR
id: find_jar
run: |
JAR_PATH=$(find build/libs -name "*.jar" ! -name "*-sources.jar" ! -name "*-dev.jar" | head -n 1)
if [ -z "$JAR_PATH" ]; then
# 如果没有排除 sources/dev,就取第一个 jar
JAR_PATH=$(find build/libs -name "*.jar" | head -n 1)
fi
echo "jar_path=$JAR_PATH" >> $GITHUB_OUTPUT
echo "找到 JAR: $JAR_PATH"

- name: 上传到 GitHub Release(每个 MC 版本单独 Release)
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ github.event.inputs.version }}-${{ matrix.mc_version }}
name: VulkanMod ${{ github.event.inputs.version }} (MC ${{ matrix.mc_version }})
body: |
🚀 VulkanMod ${{ github.event.inputs.version }} for Minecraft ${{ matrix.mc_version }}

- 基于分支: ${{ matrix.mc_version }}
- 自动构建时间: ${{ github.server_time }}
files: ${{ steps.find_jar.outputs.jar_path }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Specific MC Version

on:
workflow_dispatch:
inputs:
branch:
description: '分支名(如 1.21.4)'
required: true
default: '1.21.4'
mc_version:
description: 'Minecraft 版本(用于 Release 名称)'
required: true
default: '1.21.4'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}

- name: 设置 JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin

- name: 构建
run: |
chmod +x gradlew
./gradlew build

- name: 上传 JAR
uses: actions/upload-artifact@v4
with:
name: VulkanMod-${{ github.event.inputs.mc_version }}
path: build/libs/*.jar
33 changes: 33 additions & 0 deletions .github/workflows/buildvk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Mod for Multiple Versions

on:
push:
branches: [ main ] # 或指定 0.6.2 对应的分支
workflow_dispatch: # 支持手动触发

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
mc_version: [1.20.1, 1.21, 1.21.1] # 修改为你需要的版本列表

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: |
# 尝试通过命令行参数覆盖 Minecraft 版本
# 具体参数需要根据 build.gradle 的逻辑来定,通常需修改 gradle.properties
sed -i "s/minecraft_version=.*/minecraft_version=${{ matrix.mc_version }}/" gradle.properties
chmod +x gradlew
./gradlew build
- name: Upload JAR
uses: actions/upload-artifact@v4
with:
name: VulkanMod-${{ matrix.mc_version }}
path: build/libs/*.jar
78 changes: 2 additions & 76 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,3 @@
# <a href="https://github.com/xCollateral/VulkanMod"> <img src="./src/main/resources/assets/vulkanmod/Vlogo.png" width="30" height="30"/> </a> VulkanMod

This is a fabric mod that introduces a brand new **Vulkan** based voxel rendering engine to **Minecraft java** in order to both replace the default OpenGL renderer and bring performance improvements.

### Why?
- Highly experimental project that overhauls and modernizes the internal renderer for Minecraft. <br>
- Updates the renderer from OpenGL 3.2 to Vulkan 1.2. <br>
- Provides a potential reference for a future-proof Vulkan codebase for Minecraft Java. <br>
- Utilizes the VulkanAPI to allow for capabilities not always possible with OpenGL. <br>
- Including reduced CPU Overhead and use of newer, modern hardware capabilities. <br>

### Demonstration Video:

[![Demostration Video](http://img.youtube.com/vi/sbr7UxcAmOE/0.jpg)](https://youtu.be/sbr7UxcAmOE)

## FAQ
- Remember to check the [Wiki](https://github.com/xCollateral/VulkanMod/wiki) we wrote before asking for support!

## Installation

### Download Links:

- [![CurseForge](https://cf.way2muchnoise.eu/full_635429_downloads.svg?badge_style=flat)](https://www.curseforge.com/minecraft/mc-mods/vulkanmod)

- [![Modrinth Downloads](https://img.shields.io/modrinth/dt/JYQhtZtO?logo=modrinth&label=Modrinth%20Downloads)](https://modrinth.com/mod/vulkanmod/versions)

- [![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/xCollateral/VulkanMod/total?style=flat-square&logo=github&label=Github%20Downloads)](https://github.com/xCollateral/VulkanMod/releases)

### Install guide:
>1) Install the [fabric modloader](https://fabricmc.net).
>1) Download and put the `Vulkanmod.jar` file into `.minecraft/mods`
>1) Enjoy !

## Useful links
<table>
<tr>
<th> Discord server</th>
<th> Ko-Fi</th>
</tr>
<tr>
<td style="text-align:center">
<a href="https://discord.gg/FVXg7AYR2Q">
<img alt="Discord" align="top" src="https://img.shields.io/discord/963180553547419670?style=flat-square&logo=discord&logoColor=%23FFFFFF&label=Vulkanmod%20official%20discord%20server&labelColor=%235865F2&color=%235865F2">
</a>
</td>
<td>
<a href="https://ko-fi.com/V7V7CHHJV">
<img alt="Static Badge" align="top" src="https://img.shields.io/badge/KoFi-%23ff5e5b?logo=ko-fi&logoColor=%23FFFFFF&link=https%3A%2F%2Fko-fi.com%2FV7V7CHHJV">
</a>
</td>
</tr>
</table>


## Features

### Optimizations:
>- [x] Multiple chunk culling algorithms
>- [x] Reduced CPU overhead
>- [x] Improved GPU performance
>- [x] Indirect Draw mode (reduces CPU overhead)
>- [x] Chunk rendering optimizations

### New changes:
>- [x] Native Wayland support
>- [x] GPU selector
>- [x] Windowed fullscreen mode
>- [x] Revamped graphic settings menu
>- [x] Resizable render frame queue
>- [ ] Shader support
>- [ ] Removed Herobrine


## Notes
- This mod is still in development, please report issues in the [issue tab](https://github.com/xCollateral/VulkanMod/issues) with logs attached!
- This mode isn't just "minecraft on vulkan" (e.g: [zink](https://docs.mesa3d.org/drivers/zink.html) ), it is a full rewrite of the minecraft renderer.
# <a href="https://github.com/xCollateral/VulkanMod"> <img src="./src/main/resources/assets/vulkanmod/vlogo.png" width="30" height="30"/> </a> VulkanMod

这是一个专门用于给vulkan1.1做适配的版本
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.6.11'
id 'fabric-loom' version '1.12-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -20,10 +20,9 @@ dependencies {
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
// Fabric API.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

// Needed in order to load mod namespace
ext.includeModule = { name ->
var module = fabricApi.module(name, project.fabric_version)
modImplementation(module)
Expand All @@ -32,8 +31,13 @@ dependencies {

includeModule("fabric-api-base")
includeModule("fabric-resource-loader-v0")
includeModule("fabric-rendering-fluids-v1")
includeModule("fabric-resource-loader-v1")
includeModule("fabric-rendering-v1")
includeModule("fabric-renderer-api-v1")
includeModule("fabric-rendering-fluids-v1")
includeModule("fabric-block-view-api-v2")
includeModule("fabric-lifecycle-events-v1")
includeModule("fabric-transitive-access-wideners-v1")
}

project.ext.lwjglVersion = "3.3.3"
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.16.5
minecraft_version = 1.21.10
yarn_mappings = 1.21.10+build.2
loader_version = 0.17.3

# Fabric API
fabric_version=0.102.0+1.21
fabric_version = 0.138.0+1.21.10

# Mod Properties
mod_version = 0.4.8_dev
mod_version = 0.6.2
maven_group = net.vulkanmod
archives_base_name = VulkanMod_1.21
archives_base_name = VulkanMod_1.21.10
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
6 changes: 4 additions & 2 deletions gradlew
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/main/java/net/vulkanmod/Initializer.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package net.vulkanmod;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.renderer.v1.Renderer;
import net.fabricmc.loader.api.FabricLoader;
import net.vulkanmod.config.Config;
import net.vulkanmod.config.Platform;
import net.vulkanmod.config.UpdateChecker;
import net.vulkanmod.config.video.VideoModeManager;
import net.vulkanmod.render.chunk.build.frapi.VulkanModRenderer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down Expand Up @@ -35,6 +38,10 @@ public void onInitializeClient() {
.resolve("vulkanmod_settings.json");

CONFIG = loadConfig(configPath);

Renderer.register(VulkanModRenderer.INSTANCE);

UpdateChecker.checkForUpdates();
}

private static Config loadConfig(Path path) {
Expand Down
11 changes: 7 additions & 4 deletions src/main/java/net/vulkanmod/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@
import java.util.Collections;

public class Config {

public int frameQueueSize = 2;
public VideoModeSet.VideoMode videoMode = VideoModeManager.getFirstAvailable().getVideoMode();
public boolean windowedFullscreen = false;
public int windowMode = 0;

public int advCulling = 2;
public boolean indirectDraw = false;
public boolean indirectDraw = true;

public boolean uniqueOpaqueLayer = true;
public boolean entityCulling = true;
public int device = -1;

public int ambientOcclusion = 1;
public int frameQueueSize = 2;
public int builderThreads = 0;

public boolean backFaceCulling = true;
public boolean textureAnimations = true;

public void write() {

Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/vulkanmod/config/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.commons.lang3.SystemUtils;
import org.lwjgl.glfw.GLFW;
import org.lwjgl.system.Configuration;

import static net.vulkanmod.Initializer.LOGGER;
import static org.lwjgl.glfw.GLFW.*;
Expand Down
Loading