mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-03-22 04:44:08 +07:00
Merge pull request #2 from BlackMATov/feature/deferred-rendering-camera
Feature/deferred-rendering-camera
This commit is contained in:
@@ -231,6 +231,12 @@ namespace FTRuntime {
|
|||||||
_controllers.Remove(controller);
|
_controllers.Remove(controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetupCameras() {
|
||||||
|
foreach ( var camera in Camera.allCameras ) {
|
||||||
|
camera.clearStencilAfterLightingPass = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void GrabEnabledClips() {
|
void GrabEnabledClips() {
|
||||||
var clips = FindObjectsOfType<SwfClip>();
|
var clips = FindObjectsOfType<SwfClip>();
|
||||||
for ( int i = 0, e = clips.Length; i < e; ++i ) {
|
for ( int i = 0, e = clips.Length; i < e; ++i ) {
|
||||||
@@ -294,6 +300,7 @@ namespace FTRuntime {
|
|||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
||||||
void OnEnable() {
|
void OnEnable() {
|
||||||
|
SetupCameras();
|
||||||
GrabEnabledClips();
|
GrabEnabledClips();
|
||||||
GrabEnabledControllers();
|
GrabEnabledControllers();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e7aa1ef0de3d0447a985016d4af45a84
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"androidStore":"GooglePlay"}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 64cb5b554b36b481aa7384aecdbd398a
|
|
||||||
TextScriptImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -2,14 +2,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.2d.sprite": "1.0.0",
|
"com.unity.2d.sprite": "1.0.0",
|
||||||
"com.unity.2d.tilemap": "1.0.0",
|
"com.unity.2d.tilemap": "1.0.0",
|
||||||
"com.unity.ads": "3.7.5",
|
|
||||||
"com.unity.analytics": "3.6.12",
|
|
||||||
"com.unity.collab-proxy": "1.14.18",
|
"com.unity.collab-proxy": "1.14.18",
|
||||||
"com.unity.ide.rider": "1.2.1",
|
"com.unity.ide.rider": "1.2.1",
|
||||||
"com.unity.ide.visualstudio": "2.0.15",
|
"com.unity.ide.visualstudio": "2.0.15",
|
||||||
"com.unity.ide.vscode": "1.2.5",
|
"com.unity.ide.vscode": "1.2.5",
|
||||||
"com.unity.multiplayer-hlapi": "1.0.8",
|
"com.unity.multiplayer-hlapi": "1.0.8",
|
||||||
"com.unity.purchasing": "4.1.5",
|
|
||||||
"com.unity.test-framework": "1.1.31",
|
"com.unity.test-framework": "1.1.31",
|
||||||
"com.unity.textmeshpro": "2.1.4",
|
"com.unity.textmeshpro": "2.1.4",
|
||||||
"com.unity.timeline": "1.2.18",
|
"com.unity.timeline": "1.2.18",
|
||||||
|
|||||||
@@ -12,24 +12,6 @@
|
|||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
},
|
},
|
||||||
"com.unity.ads": {
|
|
||||||
"version": "3.7.5",
|
|
||||||
"depth": 0,
|
|
||||||
"source": "registry",
|
|
||||||
"dependencies": {
|
|
||||||
"com.unity.ugui": "1.0.0"
|
|
||||||
},
|
|
||||||
"url": "https://packages.unity.com"
|
|
||||||
},
|
|
||||||
"com.unity.analytics": {
|
|
||||||
"version": "3.6.12",
|
|
||||||
"depth": 0,
|
|
||||||
"source": "registry",
|
|
||||||
"dependencies": {
|
|
||||||
"com.unity.ugui": "1.0.0"
|
|
||||||
},
|
|
||||||
"url": "https://packages.unity.com"
|
|
||||||
},
|
|
||||||
"com.unity.collab-proxy": {
|
"com.unity.collab-proxy": {
|
||||||
"version": "1.14.18",
|
"version": "1.14.18",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
@@ -78,29 +60,6 @@
|
|||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.purchasing": {
|
|
||||||
"version": "4.1.5",
|
|
||||||
"depth": 0,
|
|
||||||
"source": "registry",
|
|
||||||
"dependencies": {
|
|
||||||
"com.unity.ugui": "1.0.0",
|
|
||||||
"com.unity.modules.unityanalytics": "1.0.0",
|
|
||||||
"com.unity.modules.unitywebrequest": "1.0.0",
|
|
||||||
"com.unity.modules.jsonserialize": "1.0.0",
|
|
||||||
"com.unity.modules.androidjni": "1.0.0",
|
|
||||||
"com.unity.services.core": "1.0.1"
|
|
||||||
},
|
|
||||||
"url": "https://packages.unity.com"
|
|
||||||
},
|
|
||||||
"com.unity.services.core": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"depth": 1,
|
|
||||||
"source": "registry",
|
|
||||||
"dependencies": {
|
|
||||||
"com.unity.modules.unitywebrequest": "1.0.0"
|
|
||||||
},
|
|
||||||
"url": "https://packages.unity.com"
|
|
||||||
},
|
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.31",
|
"version": "1.1.31",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user