summaryrefslogtreecommitdiff
path: root/example/main.cpp
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-03-10 11:31:48 -0500
committerknolax <1339802534.kk@gmail.com>2017-03-10 11:31:48 -0500
commita8b8bf1d5e08f56d0f71536889b691335435adfe (patch)
tree1f91b891c8283b02c233df658ae96717f7ab6cd1 /example/main.cpp
parent21f3329340ccd9a8c42335f84b34d3f7e4a2e99a (diff)
added magic code for second shader, prepared to be for shadow rendering, added roadmap
Diffstat (limited to 'example/main.cpp')
-rw-r--r--example/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/example/main.cpp b/example/main.cpp
index 6b7975c..476f4d7 100644
--- a/example/main.cpp
+++ b/example/main.cpp
@@ -40,14 +40,23 @@ int main (int argc, char * argv[]) {
}
switch (rot) {
case 0:
+ useregshaders();
+ setlight(2.0,10.0,3.0, 1.0, 0.5, 0.5, 15.0);
+ setcam(0.0,0.0,1.0, 0.0,0.0,0.0, 0.0,1.0,0.0);
drawmodel(0.0f, 0.0f, -2.0f, dir, 0.0f, 0.0f, 1.0, 1.0, 1.0);
drawmodel(0.5f, 3.0f, -10.0f, dir, 0.0f, 0.0f, 1.0, 1.0, 1.0);
break;
case 1:
+ useshadowshaders();
+ setlight(2.0,10.0,3.0, 1.0, 0.5, 0.5, 15.0);
+ setcam(0.0,0.0,1.0, 0.0,0.0,0.0, 0.0,1.0,0.0);
drawmodel(0.0f, 0.0f, -2.0f, 0.0f, dir, 0.0f, 1.0, 1.0, 1.0);
drawmodel(0.5f, 3.0f, -10.0f, 0.0f, dir, 0.0f, 1.0, 1.0, 1.0);
break;
case 2:
+ useregshaders();
+ setlight(2.0,10.0,3.0, 1.0, 0.5, 0.5, 15.0);
+ setcam(0.0,0.0,1.0, 0.0,0.0,0.0, 0.0,1.0,0.0);
drawmodel(0.0f, 0.0f, -2.0f, 0.0f, 0.0f, dir, 1.0, 1.0, 1.0);
drawmodel(0.5f, 3.0f, -10.0f, 0.0f, 0.0f, dir, 1.0, 1.0, 1.0);
break;