ccdemos/realtime_dragon.cc
branchpyrit
changeset 69 303583d2fb97
parent 62 07c2f8084719
child 71 4fedf7290929
equal deleted inserted replaced
68:2c154aad7f33 69:303583d2fb97
    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 	mat.setSmooth(true);
    25 	load_ply(rt, "../models/ply/dragon/dragon_vrip.ply", &mat, Vector3(-29,29,-29), Vector3(0,-3.6,0));
    26 	load_ply(rt, "../models/ply/dragon/dragon_vrip.ply", &mat, Vector3(-29,29,-29), Vector3(0,-3.6,0));
    26 
    27 
    27 	rt.setCamera(&cam);
    28 	rt.setCamera(&cam);
    28 	cam.setEye(Vector3(0,0,10));
    29 	cam.setEye(Vector3(0,0,10));
    29 
    30