Skip to content
Snippets Groups Projects
Commit b7891f07 authored by Henry's avatar Henry
Browse files

Camera and points

parent 22075ae0
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ Material:
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.509434, g: 0.509434, b: 0.509434, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0.509434, g: 0.509434, b: 0.509434, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []
......@@ -116,7 +116,7 @@ Material:
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.8117647, g: 0.6, b: 0.60641766, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0.8117647, g: 0.6, b: 0.60641766, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []
......
......@@ -129,7 +129,7 @@ Material:
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.62939644, g: 0.8113208, b: 0.60083663, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0.62939644, g: 0.8113208, b: 0.60083663, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []
This diff is collapsed.
......@@ -4,18 +4,27 @@
public class MainCamera : MonoBehaviour
{
public Transform cameraTrans;
private Transform cameraTrans;
public Transform playerTrans;
private Vector3 startOffest;
// Start is called before the first frame update
void Start()
{
cameraTrans = gameObject.GetComponent<Transform>();
startOffest = transform.position;
/*
startOffest = new Vector3(playerTrans.position.x + transform.position.x,
playerTrans.position.y + transform.position.y,
playerTrans.position.z + transform.position.z);
*/
}
// Update is called once per frame
void Update()
{
CameraDither();
CameraDither();
transform.position = playerTrans.position + startOffest;
}
/// <summary>
/// Finds the distance between camera and player then casts a raycast towards the player, if it hits an object with a dithering component it sets the opacity of the texture
......
This diff is collapsed.
fileFormatVersion: 2
guid: 2aa16ba2a56f0554ab10963d5cf1b756
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment