Commit af0d633
Reimplement the Materials tab (#609)
* Implement Materials Tab
* Optimize Materials Tab
Materials are no longer reloaded before each frame in preview
* Remove comment
* Clean up block list
* Fix memory leak
* Code improvements from reviews
* Add blocks to the MaterialStore after the provider is registered.
* Make the material properties non-global so that they reset automatically when creating/loading a new scene.
* Fix default material properties being reset when starting the renderer.
Co-authored-by: 073TheBoss <073throwaway@gmail.com>
Co-authored-by: Maik Marschner <an@maik.tk>1 parent 466c56b commit af0d633
10 files changed
Lines changed: 904 additions & 69 deletions
File tree
- chunky/src/java/se/llbit/chunky
- block
- chunk
- main
- renderer
- scene
- ui/render
- world
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
0 commit comments