From 2d2e2ff4038db052d0186645f5afe4ec9daf2505 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 24 Apr 2019 04:17:16 +0200 Subject: use boolean for tex0 and tex1 availability tests --- vke/src/PbrModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vke/src/PbrModel.cs') 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: -- cgit v1.3.1-4-g156e