Support gouraud rectangle

This commit is contained in:
2023-05-23 20:39:11 +02:00
parent cc2c01138c
commit e8bd3f9fb6
2 changed files with 47 additions and 2 deletions

View File

@@ -89,6 +89,12 @@ void main() {
RectangleClut,
JabyEngine::GPU::Color24::Grey()
);
const JabyEngine::GPU::POLY_G4 rectangle3(
{RectangleArea.position.move(RectangleArea.size.width*2, 0), RectangleArea.size}, {
JabyEngine::GPU::Color24::Red(),
JabyEngine::GPU::Color24::Blue(),
JabyEngine::GPU::Color24::Green(),
JabyEngine::GPU::Color24::White()});
load_assets();
@@ -100,6 +106,7 @@ void main() {
JabyEngine::GPU::render(rectangle1);
JabyEngine::GPU::render(rectangle2);
JabyEngine::GPU::render(rectangle3);
JabyEngine::GPU::swap_buffers_vsync(2);
}