fix rgba issue
This commit is contained in:
@@ -25,7 +25,7 @@ struct defaults {
|
|||||||
int outHeight = 512;
|
int outHeight = 512;
|
||||||
int gridWidth = 512;
|
int gridWidth = 512;
|
||||||
int gridHeight = 512;
|
int gridHeight = 512;
|
||||||
int gridDepth = 64;
|
int gridDepth = 512;
|
||||||
float fps = 30.0f;
|
float fps = 30.0f;
|
||||||
PNoise2 noise = PNoise2(42);
|
PNoise2 noise = PNoise2(42);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -703,10 +703,10 @@ public:
|
|||||||
}
|
}
|
||||||
switch (colorFormat) {
|
switch (colorFormat) {
|
||||||
case frame::colormap::RGBA: {
|
case frame::colormap::RGBA: {
|
||||||
colorBuffer[pidx + 1] = cvColor.x;
|
colorBuffer[pidx + 0] = cvColor.x;
|
||||||
colorBuffer[pidx + 2] = cvColor.y;
|
colorBuffer[pidx + 1] = cvColor.y;
|
||||||
colorBuffer[pidx + 3] = cvColor.z;
|
colorBuffer[pidx + 2] = cvColor.z;
|
||||||
colorBuffer[pidx + 0] = cvAlpha;
|
colorBuffer[pidx + 3] = cvAlpha;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case frame::colormap::BGRA: {
|
case frame::colormap::BGRA: {
|
||||||
|
|||||||
Reference in New Issue
Block a user