fix rgba issue

This commit is contained in:
Yggdrasil75
2026-01-16 14:57:50 -05:00
parent 0cb71a4799
commit 81af30d4c6
2 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ struct defaults {
int outHeight = 512;
int gridWidth = 512;
int gridHeight = 512;
int gridDepth = 64;
int gridDepth = 512;
float fps = 30.0f;
PNoise2 noise = PNoise2(42);
};

View File

@@ -703,10 +703,10 @@ public:
}
switch (colorFormat) {
case frame::colormap::RGBA: {
colorBuffer[pidx + 1] = cvColor.x;
colorBuffer[pidx + 2] = cvColor.y;
colorBuffer[pidx + 3] = cvColor.z;
colorBuffer[pidx + 0] = cvAlpha;
colorBuffer[pidx + 0] = cvColor.x;
colorBuffer[pidx + 1] = cvColor.y;
colorBuffer[pidx + 2] = cvColor.z;
colorBuffer[pidx + 3] = cvAlpha;
break;
}
case frame::colormap::BGRA: {