diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-24 04:17:16 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-24 04:17:16 +0200 |
| commit | 2d2e2ff4038db052d0186645f5afe4ec9daf2505 (patch) | |
| tree | d8491d9921381ec5d4149fdc014b72e375199dab /vke/src/PbrModel.cs | |
| parent | 25fc1c7019142137dc67e4fad0c3088d845ab0a8 (diff) | |
use boolean for tex0 and tex1 availability tests
Diffstat (limited to 'vke/src/PbrModel.cs')
| -rw-r--r-- | vke/src/PbrModel.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vke/src/PbrModel.cs b/vke/src/PbrModel.cs index 96437a2..26f720e 100644 --- a/vke/src/PbrModel.cs +++ b/vke/src/PbrModel.cs @@ -160,8 +160,8 @@ namespace CVKL { if (materials[i].availableAttachments.HasFlag (AttachmentType.AmbientOcclusion)) uboUpdate.AddWriteInfo (descriptorSets[i], dslb, textures[(int)mats[i].occlusionTexture].Descriptor); break; - case AttachmentType.MetalRoughness: - if (materials[i].availableAttachments.HasFlag (AttachmentType.MetalRoughness)) + case AttachmentType.PhysicalProps: + if (materials[i].availableAttachments.HasFlag (AttachmentType.PhysicalProps)) uboUpdate.AddWriteInfo (descriptorSets[i], dslb, textures[(int)mats[i].metallicRoughnessTexture].Descriptor); break; case AttachmentType.Metal: |