mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Merge branch 'main' into entities
This commit is contained in:
commit
316233816f
17 changed files with 247 additions and 177 deletions
|
|
@ -43,10 +43,11 @@ ModelBatch::ModelBatch(size_t capacity, Assets* assets, Chunks* chunks)
|
|||
assets(assets),
|
||||
chunks(chunks)
|
||||
{
|
||||
ubyte pixels[] = {
|
||||
const ubyte pixels[] = {
|
||||
255, 255, 255, 255,
|
||||
};
|
||||
blank = std::make_unique<Texture>(pixels, 1, 1, ImageFormat::rgba8888);
|
||||
ImageData image(ImageFormat::rgba8888, 1, 1, pixels);
|
||||
blank = Texture::from(&image);
|
||||
}
|
||||
|
||||
ModelBatch::~ModelBatch() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue