fixed 1 bugs, found 1 more and 1 disapeared on its own
This commit is contained in:
parent
f1de3bad6a
commit
6e21b12710
6
.vsconfig
Normal file
6
.vsconfig
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"version": "1.0",
|
||||
"components": [
|
||||
"Microsoft.VisualStudio.Workload.ManagedGame"
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -9,6 +9,6 @@ public class PositionSync : MonoBehaviour
|
|||
void Update()
|
||||
{
|
||||
transform.rotation = targetGameobject.transform.rotation;
|
||||
transform.position = new Vector3(targetGameobject.transform.position.x, targetGameobject.transform.position.y + 0f, targetGameobject.transform.position.z);
|
||||
transform.position = new Vector3(targetGameobject.transform.position.x, targetGameobject.transform.position.y + 100f, targetGameobject.transform.position.z);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,14 +17,13 @@ public class WorkingPortal : MonoBehaviour {
|
|||
|
||||
// Private variables
|
||||
public RenderTexture viewTexture;
|
||||
Camera WorkingPortalCam;
|
||||
public Camera WorkingPortalCam;
|
||||
Camera playerCam;
|
||||
Material firstRecursionMat;
|
||||
MeshFilter screenMeshFilter;
|
||||
|
||||
void Awake () {
|
||||
myGameObject = gameObject;
|
||||
WorkingPortalCam = GetComponentInChildren<Camera> ();
|
||||
WorkingPortalCam.enabled = false;
|
||||
screenMeshFilter = screen.GetComponent<MeshFilter> ();
|
||||
screen.material.SetInt ("displayMask", 1);
|
||||
|
@ -66,6 +65,7 @@ public class WorkingPortal : MonoBehaviour {
|
|||
|
||||
for (int i = startIndex; i < recursionLimit; i++) {
|
||||
WorkingPortalCam.transform.SetPositionAndRotation (renderPositions[i], renderRotations[i]);
|
||||
Debug.Log(string.Format("rendering at: ", renderPositions[i].x, renderPositions[i].y, renderPositions[i].z));
|
||||
SetNearClipPlane ();
|
||||
WorkingPortalCam.Render ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue