git.s-ol.nu ~forks/DiligentTools / c545eca
GLTFLoder: added BaseColorAlphaFormat to ResourceCacheUseInfo; added Model::IsGPUDataInitialized() assiduous 10 months ago
1 changed file(s) with 21 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6161 Uint8 VertexBuffer0Idx = 0;
6262 Uint8 VertexBuffer1Idx = 0;
6363
64 TEXTURE_FORMAT BaseColorFormat = TEX_FORMAT_RGBA8_UNORM;
64 /// Base color texture format.
65 TEXTURE_FORMAT BaseColorFormat = TEX_FORMAT_RGBA8_UNORM;
66
67 /// Base color texture format for alpha-cut and alpha-blend materials.
68 TEXTURE_FORMAT BaseColorAlphaFormat = TEX_FORMAT_RGBA8_UNORM;
69
70 /// Physical descriptor texture format.
6571 TEXTURE_FORMAT PhysicalDescFormat = TEX_FORMAT_RGBA8_UNORM;
66 TEXTURE_FORMAT NormalFormat = TEX_FORMAT_RGBA8_UNORM;
67 TEXTURE_FORMAT OcclusionFormat = TEX_FORMAT_RGBA8_UNORM;
68 TEXTURE_FORMAT EmissiveFormat = TEX_FORMAT_RGBA8_UNORM;
72
73 /// Normal map format.
74 TEXTURE_FORMAT NormalFormat = TEX_FORMAT_RGBA8_UNORM;
75
76 /// Occlusion texture format.
77 TEXTURE_FORMAT OcclusionFormat = TEX_FORMAT_RGBA8_UNORM;
78
79 /// Emissive texture format.
80 TEXTURE_FORMAT EmissiveFormat = TEX_FORMAT_RGBA8_UNORM;
6981 };
7082
7183 struct Material
411423
412424 void PrepareGPUResources(IRenderDevice* pDevice, IDeviceContext* pCtx);
413425
426 bool IsGPUDataInitialized() const
427 {
428 return GPUDataInitialized;
429 }
430
414431 void Transform(const float4x4& Matrix);
415432
416433 IBuffer* GetBuffer(BUFFER_ID BuffId)