forked from H-uru/Plasma
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of Metal bump mapping
Full of hacks
- Loading branch information
1 parent
b13fba8
commit 379ca20
Showing
8 changed files
with
138 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
|
||
#include "ShaderTypes.h" | ||
#include "plMetalDevice.h" | ||
#include "pfMetalPipeline/plMetalPipelineState.h" | ||
#include "plPipeline/hsG3DDeviceSelector.h" | ||
#include "plPipeline/pl3DPipeline.h" | ||
|
||
|
@@ -293,6 +294,7 @@ class plMetalPipeline : public pl3DPipeline<plMetalDevice> | |
std::optional<plMetalLights> fBoundLights; | ||
std::optional<plMaterialLightingDescriptor> fBoundMaterialProperties; | ||
std::optional<VertexUniforms> fCurrentVertexUniforms; | ||
MTL::Texture* fTextures[16]; | ||
|
||
void Reset(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters