Skip to content

Commit

Permalink
Merge pull request #356 from pbrt4bounty/patch-5
Browse files Browse the repository at this point in the history
Update a few channels names for G-Buffer
  • Loading branch information
mmp committed Jul 5, 2023
2 parents 84e81ad + a8c78a2 commit e05a003
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/pbrt/film.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,17 +696,17 @@ Image GBufferFilm::GetImage(ImageMetadata *metadata, Float splatScale) {
"Albedo.R",
"Albedo.G",
"Albedo.B",
"Px",
"Py",
"Pz",
"P.X",
"P.Y",
"P.Z",
"dzdx",
"dzdy",
"Nx",
"Ny",
"Nz",
"Nsx",
"Nsy",
"Nsz",
"N.X",
"N.Y",
"N.Z",
"Ns.X",
"Ns.Y",
"Ns.Z",
"u",
"v",
"Variance.R",
Expand All @@ -717,10 +717,10 @@ Image GBufferFilm::GetImage(ImageMetadata *metadata, Float splatScale) {
"RelativeVariance.B"});

ImageChannelDesc rgbDesc = image.GetChannelDesc({"R", "G", "B"});
ImageChannelDesc pDesc = image.GetChannelDesc({"Px", "Py", "Pz"});
ImageChannelDesc pDesc = image.GetChannelDesc({"P.X", "P.Y", "P.Z"});
ImageChannelDesc dzDesc = image.GetChannelDesc({"dzdx", "dzdy"});
ImageChannelDesc nDesc = image.GetChannelDesc({"Nx", "Ny", "Nz"});
ImageChannelDesc nsDesc = image.GetChannelDesc({"Nsx", "Nsy", "Nsz"});
ImageChannelDesc nDesc = image.GetChannelDesc({"N.X", "N.Y", "N.Z"});
ImageChannelDesc nsDesc = image.GetChannelDesc({"Ns.X", "Ns.Y", "Ns.Z"});
ImageChannelDesc uvDesc = image.GetChannelDesc({"u", "v"});
ImageChannelDesc albedoRgbDesc =
image.GetChannelDesc({"Albedo.R", "Albedo.G", "Albedo.B"});
Expand Down

0 comments on commit e05a003

Please sign in to comment.