ccdemos/realtime_dragon.cc
branchpyrit
changeset 62 07c2f8084719
parent 40 929aad02c5f2
child 69 303583d2fb97
equal deleted inserted replaced
61:7006036eb0db 62:07c2f8084719
    20 	//Light light2(Vector3(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
    20 	//Light light2(Vector3(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
    21 	//light2.castShadows(false);
    21 	//light2.castShadows(false);
    22 	//rt.addlight(&light2);
    22 	//rt.addlight(&light2);
    23 
    23 
    24 	Material mat(Colour(0.9, 0.9, 0.9));
    24 	Material mat(Colour(0.9, 0.9, 0.9));
    25 	load_ply(rt, "../models/dragon/dragon_vrip.ply", &mat, Vector3(-29,29,-29), Vector3(0,-3.6,0));
    25 	load_ply(rt, "../models/ply/dragon/dragon_vrip.ply", &mat, Vector3(-29,29,-29), Vector3(0,-3.6,0));
    26 
    26 
    27 	rt.setCamera(&cam);
    27 	rt.setCamera(&cam);
    28 	cam.setEye(Vector3(0,0,10));
    28 	cam.setEye(Vector3(0,0,10));
    29 
    29 
    30 	top.optimize();
    30 	top.optimize();