mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 20:10:05 +00:00
Updated ComputeNormalMap (markdown)
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) )
|
||||
...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user