Merge pull request #1145 from davidgyu/mtl_viewer_ios_fix

Thanks, David
This commit is contained in:
Barry Fowler 2019-06-24 19:45:53 -07:00 committed by GitHub
commit 9b02dbf9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@
_osdRenderer.displayControlMeshVertices = _controlMeshSwitch.isOn;
_osdRenderer.displayControlMeshEdges = _controlMeshSwitch.isOn;
_osdRenderer.usePatchClipCulling = _patchClipCullingSwitch.isOn;
_osdRenderer.useFractionalTessellation = _osdRenderer.useScreenspaceTessellation;
_osdRenderer.useFractionalTessellation = _osdRenderer.useFractionalTessellation;
_osdRenderer.useAdaptive = true;
_osdRenderer.freeze = true;
_osdRenderer.animateVertices = false;
@ -210,7 +210,7 @@
_osdRenderer.displayControlMeshVertices = sender.isOn;
} else if(sender == _screenspaceTessellationSwitch) {
_osdRenderer.useScreenspaceTessellation = sender.isOn;
_osdRenderer.useFractionalTessellation = _osdRenderer.useScreenspaceTessellation;
_osdRenderer.useFractionalTessellation = _osdRenderer.useFractionalTessellation;
}
}

View File

@ -30,8 +30,8 @@
typedef enum {
kEndCapBilinearBasis = 0,
kEndCapBSplineBasis,
kEndCapLegacyGregory,
kEndCapGregoryBasis,
kEndCapLegacyGregory,
} EndCap;
typedef enum {

View File

@ -342,7 +342,7 @@ struct PipelineConfig {
self.useSmoothCornerPatch = true;
self.useSingleCreasePatch = true;
self.useInfinitelySharpPatch = true;
self.useStageIn = !TARGET_OS_EMBEDDED;
self.useStageIn = true;
self.endCapMode = kEndCapGregoryBasis;
self.useScreenspaceTessellation = false;
self.useFractionalTessellation = false;