Swift 3D Game Tutorial
26.1: Refactor 2: The Big One | Swift Game Engine
Hide/Show description
Its super important to go back and modify ugly old code! So that is what we will do in this episode.
Swift Game Engine Tutorial With Metal Playlist
https://www.youtube.com/watch?v=PcA-VAybgIQ&list=PLEXt1-oJUa4BVgjZt9tK2MhV_DW7PVDsg
Become A Patron:
https://www.patreon.com/2etime
I really do appreciate everyone in this community! Thank you all!
Refactor Changes Include:
1) Moving vertex/fragmentShaderLibrary to single ShaderLibrary.swift file
2) Moving renderPIpelineDescriptors into RenderPipelineStateLibrary.swift file
3) Created a Lighting.metal file for our phong shading function
4) Removed a butt load of extra spaces
5) Made the node name field mandatory
6) Other Misc
Episode Final Output
https://github.com/twohyjr/Metal-Game-Engine-Tutorial/tree/master/Episode%20Project%20Files/Episode26.1_RefactoringAgain
Git Diff Commit
https://github.com/twohyjr/Metal-Game-Engine-Tutorial/commit/ba0ba2898668266c452c90fda440d08e286f2a52
Metal Shading Spec:
https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
Discord:
Join me on Discord for discussions about Metal. I am always open to talk code :)
https://discord.gg/hKPBTbC
Sweet Standing Desks: http://bit.ly/2XxH13m





























