reconstruct render
							parent
							
								
									93ceae3657
								
							
						
					
					
						commit
						25402941e3
					
				|  | @ -221,8 +221,8 @@ PlumageRender::PlumageRender(): | ||||||
| 			VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i])); | 			VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i])); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | /*
 | ||||||
| 	void PlumageRender::loadglTFFile(std::string filename, VulkanglTFModel& model, bool bSkyboxFlag = false) | 	void PlumageRender::loadglTFFile(std::string filename, glTFModel::Model& model, bool bSkyboxFlag = false) | ||||||
| 	{ | 	{ | ||||||
| 		tinygltf::Model glTFInput; | 		tinygltf::Model glTFInput; | ||||||
| 		tinygltf::TinyGLTF gltfContext; | 		tinygltf::TinyGLTF gltfContext; | ||||||
|  | @ -333,6 +333,8 @@ PlumageRender::PlumageRender(): | ||||||
| 		vkDestroyBuffer(device, indexStaging.buffer, nullptr); | 		vkDestroyBuffer(device, indexStaging.buffer, nullptr); | ||||||
| 		vkFreeMemory(device, indexStaging.memory, nullptr); | 		vkFreeMemory(device, indexStaging.memory, nullptr); | ||||||
| 	} | 	} | ||||||
|  | */ | ||||||
|  | 
 | ||||||
| 	// TO DO:reconstruct with getting file path through struct
 | 	// TO DO:reconstruct with getting file path through struct
 | ||||||
| 	void PlumageRender::loadAssets() | 	void PlumageRender::loadAssets() | ||||||
| 	{ | 	{ | ||||||
|  |  | ||||||
|  | @ -17,7 +17,7 @@ public: | ||||||
| 	bool ToneMapping = true; | 	bool ToneMapping = true; | ||||||
| 	bool pbrEnabled = true; | 	bool pbrEnabled = true; | ||||||
| 
 | 
 | ||||||
| 	VulkanglTFModel glTFModel; | 	glTFModel::Model glTFModel; | ||||||
| 
 | 
 | ||||||
| 	struct ShaderData { | 	struct ShaderData { | ||||||
| 		vks::Buffer buffer; | 		vks::Buffer buffer; | ||||||
|  | @ -154,7 +154,7 @@ public: | ||||||
| 		uint32_t numSamples = 32u; | 		uint32_t numSamples = 32u; | ||||||
| 	} prefilterPushBlock; | 	} prefilterPushBlock; | ||||||
| 
 | 
 | ||||||
| 	VulkanglTFModel skyboxModel; | 	glTFModel::Model skyboxModel; | ||||||
| 
 | 
 | ||||||
| 	PlumageRender(); | 	PlumageRender(); | ||||||
| 	~PlumageRender() | 	~PlumageRender() | ||||||
|  | @ -185,7 +185,7 @@ public: | ||||||
| 		shaderData.buffer.destroy(); | 		shaderData.buffer.destroy(); | ||||||
| 		shaderData.skinSSBO.destroy(); | 		shaderData.skinSSBO.destroy(); | ||||||
| 	} | 	} | ||||||
| 	void         loadglTFFile(std::string filename, VulkanglTFModel& model, bool bSkyboxFlag); | 
 | ||||||
| 	virtual void getEnabledFeatures(); | 	virtual void getEnabledFeatures(); | ||||||
| 	void createAttachment(VkFormat format, VkImageUsageFlagBits usage, FrameBufferAttachment* attachment, uint32_t width, uint32_t height); | 	void createAttachment(VkFormat format, VkImageUsageFlagBits usage, FrameBufferAttachment* attachment, uint32_t width, uint32_t height); | ||||||
| 	virtual void setupFrameBuffer(); | 	virtual void setupFrameBuffer(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue