Skip to content

Commit

Permalink
Merge pull request #1581 from zenustech/zhouhang95-patch-1
Browse files Browse the repository at this point in the history
Update png16.cpp
  • Loading branch information
legobadman authored Dec 6, 2023
2 parents 50e49e1 + d666f9f commit cbea7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Alembic/png16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static std::shared_ptr<zeno::PrimitiveObject> read_png(const char* file_path) {
uint8_t r = row[x * 4];
uint8_t g = row[x * 4 + 1];
uint8_t b = row[x * 4 + 2];
uint8_t a = row[x * 4 + 4];
uint8_t a = row[x * 4 + 3];

color[0] = float(r) / 255.0f;
color[1] = float(g) / 255.0f;
Expand Down Expand Up @@ -153,4 +153,4 @@ ZENDEFNODE(ReadPNG16, {
{},
{"comp"},
});
}
}

0 comments on commit cbea7e5

Please sign in to comment.