10 lines
203 B
C#
10 lines
203 B
C#
using UnityEngine;
|
|
|
|
public class Camera2WorldSM : MonoBehaviour
|
|
{
|
|
private void OnPreCull()
|
|
{
|
|
Shader.SetGlobalMatrix("_Camera2World", base.gameObject.GetComponent<Camera>().cameraToWorldMatrix);
|
|
}
|
|
}
|