This commit is contained in:
Cameron 2022-07-01 14:57:38 -07:00 коммит произвёл GitHub
Родитель 0d8e52d647
Коммит 2b52a2f6ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
10 изменённых файлов: 26 добавлений и 5 удалений

Просмотреть файл

@ -10,20 +10,23 @@ keywords: Unreal, Unreal Engine, UE4, HoloLens, HoloLens 2, Mixed Reality, devel
# Clipping primitives
Clipping primitives can be used to dynamically slice away a mesh and peer inside the geometry. This is useful whenever you need to inspect the inner workings of a complex model.
Clipping primitives can be used to dynamically slice away a mesh and peer inside the geometry. This is useful whenever you need to inspect the inner workings of a complex model.
A clipping primitive represents an analytic shape that passes its state and transformation data into a [material parameter collection](https://docs.unrealengine.com/en-US/RenderingAndGraphics/Materials/ParameterCollections/index.html). [Material functions](https://docs.unrealengine.com/en-US/RenderingAndGraphics/Materials/Functions/index.html) can then take this primitive data and perform calculations, such as returning the signed distance from the shape's surface.
![ClippingPrimitives](Images/FeatureCards/ClippingPrimitives.png)
> [!NOTE]
> [!NOTE]
> The clipping algorithm is optimized for mixed reality but requires the use of [masked or translucent](https://docs.unrealengine.com/en-US/RenderingAndGraphics/Materials/MaterialProperties/BlendModes/index.html) materials. Masked and translucent materials have additional overhead over opaque ones and should be used sparingly.
Graphics Tools contains a few clipping primitive types for developers to pick from. All clipping primitive components derive from the `UGTClippingPrimitiveComponent`.
> [!NOTE]
> [!NOTE]
> By default, Graphics Tools only transfers the data of one clipping primitive per type per level to materials (i.e., only one `MF_GTClippingSphere`, `MF_GTClippingBox`, etc. has an effect within a level.) To utilize more than one clipping primitive per type per level please see the [advanced usage](#Advanced-usage) section.
> [!NOTE]
> If your project uses MSAA you may see "banding artifacts" near clipped pixels. To fix this pass the alpha output of the clipping material function to the alpha input of the `MF_GTAlphaToCoverage` function. You can then use the output of that function for later calculations.
### Clipping plane
The `UGTClippingPlane` component (or actor) represents an infinite plane. The plane's position is controlled by the component's transform location and plane normal is determined by transform's x axis direction. Use the `MF_GTClippingPlane` material function to calculate a point's signed distance from the primitive.

Просмотреть файл

@ -22,13 +22,16 @@ The forth release of the Graphics Tools supports Windows, HoloLens 2, and Androi
Graphics Tools can now be used with Unreal Engine 5.
### Alpha to coverage material function
If your project uses MSAA you may see "banding artifacts" near clipping primitive pixels. The `MF_GTAlphaToCoverage` function has been added to help fix this. See the [clipping primitive](ClippingPrimitives.md) documentation for more info.
## Breaking changes
The plugin now assumes Unreal Engine 5 usage. For Unreal Engine 4 support please use [previous releases](https://github.com/microsoft/MixedReality-GraphicsTools-Unreal/releases) of Graphics Tools.
The plugin now assumes Unreal Engine 5 usage. For Unreal Engine 4 support please use [previous releases](https://github.com/microsoft/MixedReality-GraphicsTools-Unreal/releases) of Graphics Tools.
## Known issues
### The Visual Profiler's text looks blurry with TAA
Text may not be readable when using temporal anti-aliasing (TAA). TAA is not supported on HoloLens 2 so text should be readable on device.

Просмотреть файл

@ -124,6 +124,7 @@ r.LightPropagationVolume=False
; Comment in to enable HLSL debugging in RenderDoc.
;r.Shaders.Optimize=0
;r.Shaders.KeepDebugInfo=1
r.AntiAliasingMethod=3
[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/GraphicsToolsExamples/Loader/Loader.Loader
@ -147,3 +148,17 @@ bExplicitCanvasChildZOrder=True
PackageName=com.Microsoft.GraphicsToolsProject
bPackageDataInsideApk=True
[/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings]
bEnablePlugin=True
bAllowNetworkConnection=True
SecurityToken=35F8B71049EFA20460CD309E889F3DF4
bIncludeInShipping=False
bAllowExternalStartInShipping=False
bCompileAFSProject=False
bUseCompression=False
bLogFiles=False
bReportStats=False
ConnectionType=USBOnly
bUseManualIPAddress=False
ManualIPAddress=

Двоичный файл не отображается.