Added new clouds shader with improved raymarching loop Currently only being used in main menu (rest is coming right up!) Removed WWise (it's nice, but all it's doing is throwing exceptions rn since we ain't about to get a license)
16 lines
No EOL
509 B
C#
16 lines
No EOL
509 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Yangrc.VolumeCloud.Sample {
|
|
public class MouseMovement: MonoBehaviour {
|
|
private void Update() {
|
|
float yaw = Input.GetAxis("Mouse X");
|
|
float pitch = -Input.GetAxis("Mouse Y");
|
|
var currAngle = transform.rotation.eulerAngles;
|
|
currAngle.x += pitch;
|
|
currAngle.y += yaw;
|
|
transform.rotation = Quaternion.Euler(currAngle);
|
|
}
|
|
}
|
|
} |