Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __global__
- void initializeScene()
- {
- dev_cam = new Camera;
- dev_cam->yaw = 0;
- dev_cam->pitch = 0;
- dev_cam->roll = 0;
- dev_cam->fov = 90;
- dev_cam->aspect = 4.0 / 3.0;
- dev_cam->pos = Vector(0, 120, -100);
- dev_cam->beginFrame();
- m_controller = new CameraController(*dev_cam, 0.05f);
- lightPos = Vector(0, 296, 100);
- lightColor = Color(1, 1, 1);
- lightPower = 60000;
- ambientLight = Color(0.2, 0.2, 0.2);
- // For Real Time Rendering
- createNode(new Plane(5), new OrenNayar(Color(0.5, 0.5, 0.5), 1.0));
- createNode(new Plane(500), new OrenNayar(Color(0.5, 0.5, 0.5), 1.0));
- createNode(new Sphere(Vector(0, 50, 200), 40.0), new Phong(Color(0, 0, 1), 32));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement