Fixed mtlViewer for iOS

-Fixed the iOS ViewController to set the correct irregular
 patch approximation mode.
-Fixed the setting of fractionalSpacing to be separate from
 screenspace tessellation.
-Fixed the configuration of the internal stage-in setting
 on embedded builds.
This commit is contained in:
David G Yu 2019-06-24 17:04:25 -07:00
parent b28290439c
commit 2c569ad661
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;