| 1859 | { |
| 1860 | Ref<Object> star = new ObjectColored(shape, -1); |
| 1861 | star->SetTransform(M4Identity); |
| 1862 | star->SetPosition(pos); |
| 1863 | star->SetScale(size / shape->BoundingSphere()); |
| 1864 | star->SetConstantColor(color); |
| 1865 | GetLandscape()->ShowObject(star); |
| 1866 | } |
| 1867 | |
| 1868 | void Scene::DrawVolumeLight(LODShapeWithShadow* shape, PackedColor color, const Frame& pos, float size) |
| 1869 | { |
| 1870 | if (!shape) |
| 1871 | { |
| 1872 | static bool warned = false; |
| 1873 | if (!warned) |
| 1874 | { |
| 1875 | LOG_ERROR(Graphics, "Skipping visible light volume because its shape failed to load"); |
| 1876 | warned = true; |
| 1877 | } |
| 1878 | return; |
| 1879 | } |
| 1880 | |
| 1881 | Ref<Object> object = new ObjectColored(shape, -1); |
| 1882 | // draw light shape |
| 1883 | object->SetTransform(pos.Transform()); |
| 1884 | object->SetPosition(object->PositionModelToWorld(shape->BoundingCenter())); |
| 1885 | // ObjectForDrawing(object,-1,(ENGINE_CONFIG.reflections&REFL_OBJECT)!=0); |
| 1886 |
no test coverage detected