Skip to content

Commit

Permalink
Merge pull request #1248 from Autodesk/t_bailp/MAYA-106484/single-cha…
Browse files Browse the repository at this point in the history
…nnel-half-float

MAYA-106484 add single-channel half-float EXR support.
  • Loading branch information
Krystian Ligenza authored Mar 13, 2021
2 parents 9a96421 + 82f58cf commit 6cd417f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mayaUsd/render/vp2RenderDelegate/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ _LoadTexture(const std::string& path, bool& isColorSpaceSRGB, MFloatArray& uvSca
desc.fFormat = MHWRender::kR32_FLOAT;
texture = textureMgr->acquireTexture(path.c_str(), desc, spec.data);
break;
case HioFormatFloat16:
desc.fFormat = MHWRender::kR16_FLOAT;
texture = textureMgr->acquireTexture(path.c_str(), desc, spec.data);
break;
case HioFormatUNorm8:
desc.fFormat = MHWRender::kR8_UNORM;
texture = textureMgr->acquireTexture(path.c_str(), desc, spec.data);
Expand Down

0 comments on commit 6cd417f

Please sign in to comment.