Changeset 2289 for trunk/tutorial/05_easymesh.cpp
- Timestamp:
- Jan 28, 2013, 2:23:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/05_easymesh.cpp
r2237 r2289 55 55 Ticker::Ref(m_camera); 56 56 57 /* Add a white directional light */ 58 m_light1 = new Light(); 59 m_light1->SetPosition(vec4(0.2f, 0.2f, 0.f, 0.f)); 60 m_light1->SetColor(vec4(0.5f, 0.5f, 0.5f, 1.f)); 61 Ticker::Ref(m_light1); 62 63 /* Add an orangeish point light */ 64 m_light2 = new Light(); 65 m_light2->SetPosition(vec4(-15.f, 15.f, 15.f, 1.f)); 66 m_light2->SetColor(vec4(0.4f, 0.3f, 0.2f, 1.f)); 67 Ticker::Ref(m_light2); 68 57 69 m_ready = false; 58 70 } … … 61 73 { 62 74 Ticker::Unref(m_camera); 75 Ticker::Unref(m_light1); 76 Ticker::Unref(m_light2); 63 77 } 64 78 … … 115 129 mat4 m_mat; 116 130 Camera *m_camera; 131 Light *m_light1, *m_light2; 117 132 118 133 bool m_ready;
Note: See TracChangeset
for help on using the changeset viewer.