Unity 勉強メモ

ゲームエンジンのUnityを勉強するブログです。

http://opengl-tutorial.org をやってみた (その11)

opengl-tutorial.org というサイトを参考にOpenGLを勉強しています。

OBJファイルの読み込み

プログラム

頂点シェーダ

フラグメントシェーダ

コンパイル&実行

$ g++ `pkg-config --cflags glfw3 glew` -o prog11 prog11.cpp `pkg-config --static --libs glfw3 glew`
$ ./prog11

実行結果 f:id:lambdataro:20150527035232p:plain