エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
[Unity] UnityでComputeShaderを使う解説をしているページを訳してみた その3 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
[Unity] UnityでComputeShaderを使う解説をしているページを訳してみた その3 - Qiita
using UnityEngine; using System.Collections; public class TextureExample : MonoBehaviour { public... using UnityEngine; using System.Collections; public class TextureExample : MonoBehaviour { public ComputeShader shader; RenderTexture tex; void Start () { tex = new RenderTexture(64, 64, 0); tex.enableRandomWrite = true; tex.Create(); shader.SetFloat("w", tex.width); shader.SetFloat("h", tex.height); shader.SetTexture(0, "tex", tex); shader.Dispatch(0, tex.width/8, tex.height/8, 1); } void OnGUI()

