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