ゲームを作っていると2直線の交点が知りたいこともあるかなと思います。
そんな時に役立つ2直線の交点を計算するC#のコードです。
Line Intersection | Unity Community
https://forum.unity.com/threads/line-intersection.17384/
算数・数学の時間に勉強した範囲でコード化できる内容ですが自分で作るとなると結構な手間かなと思います。
ゲームを作っていると2直線の交点が知りたいこともあるかなと思います。
そんな時に役立つ2直線の交点を計算するC#のコードです。
Line Intersection | Unity Community
https://forum.unity.com/threads/line-intersection.17384/
算数・数学の時間に勉強した範囲でコード化できる内容ですが自分で作るとなると結構な手間かなと思います。
Unityで使えるOutlineエフェクトです。
ライセンスはMIT License。
オブジェクト選択のエフェクトとかで便利そうな感じです。
GitHub – cakeslice/Outline-Effect: Outline Image Effect for Unity
https://github.com/cakeslice/Outline-Effect
Cgで使えるbuilt-in関数のリファレンス
The Cg Tutorial – Appendix E. Cg Standard Library Functions
http://developer.download.nvidia.com/CgTutorial/cg_tutorial_appendix_e.html
Cg-3.1_April2012_ReferenceManual.pdf
http://developer.download.nvidia.com/cg/Cg_3.1/Cg-3.1_April2012_ReferenceManual.pdf
UnityのShaderでも参考になるかなと思います。