1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-24 21:30:14 +00:00

Updated ComputeNormalMap (markdown)

Chuck Walbourn 2015-06-21 23:09:13 -07:00
parent 3e66c5a139
commit e1bd902ddd

@ -41,7 +41,9 @@ _format_: Format of the resulting ScratchImage
...
ScratchImage normalMap;
hr = ComputeNormalMap( hmapImage.GetImage(0,0,0), CNMAP_CHANNEL_LUMINANCE | CNMAP_COMPUTE_OCCLUSION, 2.f, DXGI_FORMAT_R8G8B8A8_UNORM, normalMap );
hr = ComputeNormalMap( hmapImage.GetImage(0,0,0),
CNMAP_CHANNEL_LUMINANCE | CNMAP_COMPUTE_OCCLUSION,
2.f, DXGI_FORMAT_R8G8B8A8_UNORM, normalMap );
if ( FAILED(hr) )
...