Merge pull request #19 from Unity-Technologies/aisv726_blurred_viz_bug
Fix for the blurred visualization bug
This commit is contained in:
Коммит
d6ddbf7fcf
|
@ -68,7 +68,7 @@ linux_{{suite.name}}_{{editor.version}}:
|
|||
commands:
|
||||
- git submodule update --init --recursive
|
||||
- sudo -H pip install --upgrade pip
|
||||
- sudo -H pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
|
||||
- sudo -H pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
|
||||
- git clone git@github.cds.internal.unity3d.com:unity/utr.git utr
|
||||
- sudo unity-downloader-cli -u {{ editor.version }} -c editor -c StandaloneSupport-IL2CPP -c Linux --wait --published
|
||||
{% if suite.name == "standalone" %}
|
||||
|
@ -81,4 +81,4 @@ linux_{{suite.name}}_{{editor.version}}:
|
|||
paths:
|
||||
- "test-results/**/*"
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -56,6 +56,14 @@ public class RandomizedPostProcessingFeature : ScriptableRendererFeature
|
|||
return;
|
||||
#endif
|
||||
|
||||
// When SynthDet is being ran in visualization mode, a second camera is created to display the scene. The first
|
||||
// camera (which contains the perception camera) renders the scene to a render texture, and a second camera
|
||||
// displays the render texture along with all visualization components. We do not one the custom passes applied
|
||||
// to the visualized contents, only the contents that are used by the perception camera. In a scene without
|
||||
// visualization only one camera (the perception camera) is available and so that case will bypass this check
|
||||
if (renderingData.cameraData.camera.GetComponent<PerceptionCamera>() == null)
|
||||
return;
|
||||
|
||||
// Initialize here because scene is not guaranteed to be initialized when Create is called
|
||||
if (m_InitParams == null)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче