fixed 1 bugs, found 1 more and 1 disapeared on its own

This commit is contained in:
LOLthecool 2024-02-05 17:34:22 +00:00
parent f1de3bad6a
commit 6e21b12710
4 changed files with 5565 additions and 412 deletions

6
.vsconfig Normal file
View file

@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.ManagedGame"
]
}

File diff suppressed because it is too large Load diff

View file

@ -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);
}
}

View file

@ -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 ();