comparison Render.cpp @ 2191:48a28fe1f32f

pInventoryItemList->Reset()
author Ritor1
date Thu, 30 Jan 2014 17:41:54 +0600
parents e1e4a8a20b5f
children d0e321190c86
comparison
equal deleted inserted replaced
2190:0acbf1f82c70 2191:48a28fe1f32f
8654 next_vertices_flag = array_50AC10[i + 1].vWorldViewPosition.x >= 8.0; 8654 next_vertices_flag = array_50AC10[i + 1].vWorldViewPosition.x >= 8.0;
8655 if ( current_vertices_flag != next_vertices_flag ) 8655 if ( current_vertices_flag != next_vertices_flag )
8656 { 8656 {
8657 if ( next_vertices_flag ) 8657 if ( next_vertices_flag )
8658 { 8658 {
8659 //t = neer_clip - v0.x / v1.x - v0.x (формула получения точки пересечения отрезка с плоскостью) 8659 //t = near_clip - v0.x / v1.x - v0.x (формула получения точки пересечения отрезка с плоскостью)
8660 t = (8.0 - array_50AC10[i].vWorldViewPosition.x) / (array_50AC10[i + 1].vWorldViewPosition.x - array_50AC10[i].vWorldViewPosition.x); 8660 t = (8.0 - array_50AC10[i].vWorldViewPosition.x) / (array_50AC10[i + 1].vWorldViewPosition.x - array_50AC10[i].vWorldViewPosition.x);
8661 array_507D30[out_num_vertices].vWorldViewPosition.y = (array_50AC10[i + 1].vWorldViewPosition.y - array_50AC10[i].vWorldViewPosition.y) * t + array_50AC10[i].vWorldViewPosition.y; 8661 array_507D30[out_num_vertices].vWorldViewPosition.y = (array_50AC10[i + 1].vWorldViewPosition.y - array_50AC10[i].vWorldViewPosition.y) * t + array_50AC10[i].vWorldViewPosition.y;
8662 array_507D30[out_num_vertices].vWorldViewPosition.z = (array_50AC10[i + 1].vWorldViewPosition.z - array_50AC10[i].vWorldViewPosition.z) * t + array_50AC10[i].vWorldViewPosition.z; 8662 array_507D30[out_num_vertices].vWorldViewPosition.z = (array_50AC10[i + 1].vWorldViewPosition.z - array_50AC10[i].vWorldViewPosition.z) * t + array_50AC10[i].vWorldViewPosition.z;
8663 array_507D30[out_num_vertices].u = (array_50AC10[i + 1].u - array_50AC10[i].u) * t + array_50AC10[i].u; 8663 array_507D30[out_num_vertices].u = (array_50AC10[i + 1].u - array_50AC10[i].u) * t + array_50AC10[i].u;
8664 array_507D30[out_num_vertices].v = (array_50AC10[i + 1].v - array_50AC10[i].v) * t + array_50AC10[i].v; 8664 array_507D30[out_num_vertices].v = (array_50AC10[i + 1].v - array_50AC10[i].v) * t + array_50AC10[i].v;