ここでは、基本的な設定スクリプト(CMakeLists.txt)の書き方を紹介します。
(主にVisual C++向けに説明します。)
CMakeでC++のプロジェクトを生成するための最小限必要のスクリプトを説明します。
- cmake_minimum_required
CMakeの最小要求バージョンを設定します。
| /* ------------------------------- | |
| DEBUG | |
| ------------------------------- */ | |
| /* prints Output sentence on screen */ | |
| cout << "DONE!: \n"; | |
| cout << "Position: " << position << "\n"; | |
| ofLog() << " event at " << f << endl; | |
| /* ------------------------------- |
| using UnityEngine; | |
| using System.Collections; | |
| /// キャラクター基底クラス. | |
| /// SpriteRendererが必要. | |
| [RequireComponent (typeof(SpriteRenderer))] | |
| public class Token : MonoBehaviour | |
| { | |
| /// プレハブ取得. | |
| /// プレハブは必ず"Resources/Prefabs/"に配置すること. |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh