mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02:00
Instead of calling glutSolidSphere, just call Application::getInstance()->getGeometryCache()->renderSphere(...) - replaced all the instances of "glutSolidSphere" - Changed the atmosphere shaders so instead of drawing a sphere of the size of the atmosphere, we draw a unit sphere, the vertices get scaled at the right radius in th vertex shader using fOuterRadius
20 lines
620 B
C++
20 lines
620 B
C++
//
|
|
// VertexOrder.cpp
|
|
// interface/src/starfield/renderer
|
|
//
|
|
// Created by Chris Barnard on 10/17/13.
|
|
// Based on code by Tobias Schwinger on 3/22/13.
|
|
// Copyright 2013 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include "starfield/renderer/VertexOrder.h"
|
|
|
|
using namespace starfield;
|
|
|
|
bool VertexOrder::bit(InputVertex const& vertex, state_type const& state) const {
|
|
unsigned key = _tiling.getTileIndex(vertex.getAzimuth(), vertex.getAltitude());
|
|
return base::bit(key, state);
|
|
}
|