// 把這個腳本套用在攝影機中,沒意外左上角會出現攝影機照出來的貼圖
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
void OnGUI(){
Texture2D texture = new Texture2D (Screen.width, Screen.height, TextureFormat.RGB24, false);
texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
texture.Apply(false, false);
GUI.DrawTexture(new Rect(0, 0, 100, 100), texture);
}
}
文章標籤
全站熱搜

你好,我是Unity新手,最近想做3D立體顯示的遊戲(使用NVIDIA 3D VISION眼鏡)一直在網路上尋找有關這方面的資訊,目前我能做到的只有做出side by side的畫面,無法把兩個畫面combine起來,想請問這技術只能在Asset store買到還是我有可能自己做得起來嗎?希望版主可以給予一點指教,謝謝。