Skip to content

Commit

Permalink
v1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Twolf-Liao committed Aug 12, 2024
1 parent d750877 commit 98755c5
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 67 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

uses: microsoft/setup-msbuild@v2

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{ matrix.abi }} ${{env.SOLUTION_FILE_PATH}}

- name: Upload dll
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: BetterRenderDragon.dll
path: ./build/BetterRenderDragon.dll

- name: Upload pdb
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: BetterRenderDragon.pdb
path: ./build/BetterRenderDragon.pdb
1 change: 1 addition & 0 deletions BetterRenderDragon/GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ void updateImGui() {
ImGui::Text("V1.4.1\n Support 1.20.80.20 preview and 1.20.80.21 preview");
ImGui::Text("V1.4.2\n Support 1.20.71.01");
ImGui::Text("V1.4.3\n Support 1.20.80.05\n Removed key binding for reload shaders");
ImGui::Text("V1.4.4\n Support 1.21.2.02\n Added key binding for reload shaders");
}
ImGui::End();
}
Expand Down
12 changes: 9 additions & 3 deletions BetterRenderDragon/MCHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ void initMCHooks() {
//1.20.10.23 preview
"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 45 0F B6 F1 49 8B F8 48 8B F2 48 8B D9",
//1.20.30.21 preview
"4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B D8 48 8B F2 48 8B F9"
"4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B D8 48 8B F2 48 8B F9",
//1.21.20.24 preview
"4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B F0 48 8B FA 48 8B D9"
);

TrySigHook(readFile,
Expand All @@ -300,7 +302,9 @@ void initMCHooks() {
//1.20.80.21 preview
"48 89 5C 24 ? 48 89 74 24 ? 55 57 41 54 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0",
//1.20.80.05
"48 89 5C 24 ? 55 56 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0 48 8B FA"
"48 89 5C 24 ? 55 56 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0 48 8B FA",
//1.21.20.24 preview
"48 89 5C 24 ? 55 56 57 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B F8 48 8B F2 48 89 55 ? ? ? ?"
);

if (TrySigHookNoWarning(mce_framebuilder_BgfxFrameBuilder_endFrame, "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 4C 8B FA 48 89 55 ? 4C 8B F1")) {
Expand All @@ -310,7 +314,9 @@ void initMCHooks() {
//1.20.60.04
"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 4C 8B EA",
//1.21.0.03
"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 89 55"
"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 89 55",
//1.21.20.24 preview
"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 8B F9"
)) {
offsetToMaterialsManager = 816;
} else {
Expand Down
2 changes: 1 addition & 1 deletion BetterRenderDragon/Version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

#define BetterRDVersion "v1.4.3"
#define BetterRDVersion "v1.4.4"
72 changes: 50 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,57 @@
简体中文 | [English](README_US.md)
# English | [简体中文](README_CN.md)

# BetterRenderDragon
为渲染龙添加更多功能
## BetterRenderDragon

## 功能
* 启用延迟渲染
* 禁用光线追踪以获得更好的性能
* 从资源包加载渲染龙着色器
* 热重载渲染龙着色器
* 可配置功能的ImGui
Enhancement Mod for the RenderDragon Engine of _**Minecraft: Bedrock Edition**_

## 支持的版本
MCBE正式版或预览版1.20.10以上
## Functions

## 使用
1. 安装MCBE 1.20.10及以上版本
2.[Releases](https://github.com/ddf8196/BetterRenderDragon/releases/latest)中下载`BetterRenderDragon.zip`并解压
3. 双击`LaunchMinecraft.bat`启动正式版MC, 或双击`LaunchMinecraftPreview.bat`启动预览版MC
* Enable deferred rendering
* Disable raytracing for better performance
* Loads RenderDragon shaders from the resource pack
* Hot reload RenderDragon shaders
* Configurable ImGui

### ImGui
* `F6` 开启或关闭ImGui显示
## Support Versions

### MaterialBinLoader
* `R` 重新加载着色器
MCBE Official version 1.20.30+

## 最低要求
* Direct3D 11 (无法启用延迟渲染)
* 启用延迟渲染最低需要Direct3D 12
## Installation

_**YOU HAVE TO DO THIS EVERYTIME YOU WANT TO USE BRD!**_

* Not doing these steps wll result in Vanilla Minecraft being launched!

1. **Check your Minecraft Version**
* BetterRenderDragon currently supports stable versions 1.20.30+
**(You do need a copy of Minecraft on your computer!)**
2. **Get BetterRenderDragon!**
* Download BetterRenderDragon From [here](https://github.com/ddf8196/BetterRenderDragon/releases/latest). For Beta version please download from [here](https://github.com/ddf8196/BetterRenderDragon/actions)
3. **Unzip the file!**
* Unzip the file `BetterRenderDragon.zip` to an empty folder!
4. **Start It!**
* In the BetterRenderDragon folder, double-Click _**`LaunchMinecraft.bat`**_ to launch Stable versions, or Double-click _**`LaunchMinecraftPreview.bat`**_ to launch Preview versions.

## Usage

* Press **`F6`** to show or hide the BetterRenderDragon Menu!

## Minimum requirements

* Direct3D 11 (cannot enable deferred rendering)
* To enable deferred rendering, the minimum requirement is Direct3D 12(FL 12.1)

## Troubleshooting

* My antivirus software blocked BetterRenderDragon, what should I do?
* **You can add BetterRenderDragon to your antivirus software's whitelist.**. Just the software doesnt have a valid signature.

* I can't find the BetterRenderDragon Menu!
* **Press `F6` to show or hide the BetterRenderDragon Menu**

* FindFirstFileW failed: error [00000002] The system cannot find the file specified.
* Most likely is your antivirus deleted the BetterRenderDragon dll file inside dlls folder, you can add BetterRenderDragon to your antivirus software's whitelist.

## Note

**This Program is not affiliated with Mojang Studios**.
29 changes: 29 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
简体中文 | [English](README.md)

# BetterRenderDragon
为渲染龙添加更多功能

## 功能
* 启用延迟渲染
* 禁用光线追踪以获得更好的性能
* 从资源包加载渲染龙着色器
* 热重载渲染龙着色器
* 可配置功能的ImGui

## 支持的版本
MCBE正式版或预览版1.20.10以上

## 使用
1. 安装MCBE 1.20.10及以上版本
2.[Releases](https://github.com/ddf8196/BetterRenderDragon/releases/latest)中下载`BetterRenderDragon.zip`并解压
3. 双击`LaunchMinecraft.bat`启动正式版MC, 或双击`LaunchMinecraftPreview.bat`启动预览版MC

### ImGui
* `F6` 开启或关闭ImGui显示

### MaterialBinLoader
* `R` 重新加载着色器

## 最低要求
* Direct3D 11 (无法启用延迟渲染)
* 启用延迟渲染最低需要Direct3D 12
36 changes: 0 additions & 36 deletions README_US.md

This file was deleted.

0 comments on commit 98755c5

Please sign in to comment.