-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,50 @@ | ||
# Extra resources | ||
|
||
This page will include random things which might be useful to a small niche of users. | ||
This page will include random things that might be useful to a small niche of users. | ||
|
||
|
||
## Unpacking data from material.bin files | ||
|
||
```sh | ||
java -jar MaterialBinTool-all.jar -u "material.bin files to unpack" | ||
``` | ||
|
||
You can find material.bin files inside `<minecraft data path>/assets/renderer/materials` | ||
|
||
|
||
## Merged material files using MBT {#merged-data} | ||
|
||
Material data from multiple platforms can be merged into a single data file and then be used to compile materials that will work on all platforms that were included in the merge. | ||
Keep in mind that the final material.bin file will be quite large. | ||
|
||
To merge material data using the MBT jar, run: | ||
```sh | ||
java -jar ./MaterialBinTool-all.jar --data-only -o "output dir" -m "material.json files of each platform" | ||
``` | ||
|
||
This will only work if the material.json files are all from the same version of MC. | ||
|
||
Here is a bash script to do multiple files in the following structure: | ||
``` | ||
Android | ||
└─ RenderChunk | ||
└─ RenderChunk.json | ||
Windows | ||
└─ RenderChunk | ||
└─ RenderChunk.json | ||
iOS | ||
└─ RenderChunk | ||
└─ RenderChunk.json | ||
``` | ||
```sh | ||
#!/bin/bash | ||
MBT="java -jar ./MaterialBinTool-0.8.2-all.jar" | ||
MATERIALS="Android/*" | ||
for s in $MATERIALS; do | ||
MAT=$(basename ${s}) | ||
echo "Merging $MAT" | ||
$MBT --data-only -o merged/$MAT/ -m Android/$MAT/$MAT.json Windows/$MAT/$MAT.json iOS/$MAT/$MAT.json | ||
done | ||
``` | ||
|
||
To use these, copy the `Merged/` directory to `data/`, and add the argument `-p Merged` when building. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
::: warning Warning | ||
|
||
There may be mistakes or incorrect information in this guide. If you find one, please open an issue [here](https://github.com/devendrn/renderdragon-shaders) or make a PR. | ||
There may be mistakes or incorrect information in this guide. | ||
If you find one, please open an issue [here](https://github.com/devendrn/renderdragon-shaders) or make a PR. | ||
|
||
::: | ||
|
||
# What is RenderDragon? | ||
|
||
RenderDragon is a new cross-platform rendering engine for Minecraft Bedrock, initially announced in 2019. It includes several changes under the hood to improve the performance and graphics capabilities of Minecraft [[1]](https://www.minecraft.net/en-us/article/render-dragon-and-nvidia-ray-tracing). One of its major features is support for real-time raytraced graphics on compatible RTX graphics cards. | ||
RenderDragon is a new cross-platform rendering engine for Minecraft Bedrock, initially announced in 2019. | ||
It includes several changes under the hood to improve the performance and graphics capabilities of Minecraft [[1]](https://www.minecraft.net/en-us/article/render-dragon-and-nvidia-ray-tracing). One of its major features is support for real-time raytraced graphics on compatible RTX graphics cards. | ||
|
||
RenderDragon is constantly improving with every update, adding new improvements and capabilities. [Deferred Rendering Pipeline](deferred) is a new major feature of RenderDragon that is currently being worked on by Minecraft. It is expected to bring a major graphics overhaul with dynamic shadows, PBR materials, bloom, tone mapping, and other features to a wide range of platforms. [[2]](https://www.minecraft.net/en-us/creator/article/new-render-dragon-features-creators) | ||
RenderDragon is constantly improving with every update, adding new improvements and capabilities. | ||
[Deferred Rendering Pipeline](deferred) is a new major feature of RenderDragon that is currently being worked on by Minecraft. | ||
It is expected to bring a major graphics overhaul with dynamic shadows, PBR materials, bloom, tone mapping, and other features to a wide range of platforms. [[2]](https://www.minecraft.net/en-us/creator/article/new-render-dragon-features-creators) | ||
|
||
<br> | ||
|
||
_ _ _ | ||
|
||
# Getting started | ||
|
||
As of now, Minecraft Bedrock does not officially support custom shaders. It was removed with the addition of RenderDragon on Bedrock. This documentation covers an unofficial way by which you can make and use custom shaders on RenderDragon. | ||
As of now, Minecraft Bedrock does not officially support custom shaders. | ||
It was removed with the addition of RenderDragon on Bedrock. | ||
This documentation covers an unofficial way by which you can make and use custom shaders on RenderDragon. | ||
|
||
If you, like us, also want Minecraft Bedrock to support custom shaders officially, then go ahead and upvote this [feedback post](https://feedback.minecraft.net/hc/en-us/community/posts/360077420452-3rd-party-shader-support-for-render-dragon). | ||
|
||
|
||
You can make and use custom shaders on RenderDragon thanks to the efforts of [ddf8186](https://github.com/ddf8196), who managed to create some utilities for building shaders and loading them. The following guide will cover how you can use his tools and utilities for building shaders for RenderDragon. | ||
You can make and use custom shaders on RenderDragon thanks to the efforts of [ddf8196](https://github.com/ddf8196), who managed to create some utilities for building shaders and loading them. | ||
The following guide will cover how you can use his tools and utilities for building shaders. | ||
|
||
### [🡪 How to build shaders](build) | ||
### [🡪 Utilities](build) | ||
### [🡪 Utilities](utilities) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters