mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Starfield now generates stars at startup rather than load them from the server - approx. 50msec to load 50,000 stars. STAR_COLORIZATION const in Generator.cpp is used to defined how colorful the stars should be. STARFIELD_NUM_STARS and STARFIELD_SEED sets the number of stars and the random number seed used to generate the starfield.
35 lines
646 B
C++
Executable file
35 lines
646 B
C++
Executable file
//
|
|
// starfield/data/GpuVertex.h
|
|
// interface
|
|
//
|
|
// Created by Tobias Schwinger on 3/29/13.
|
|
// Modified 10/17/13 Chris Barnard.
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __interface__starfield__data__GpuVertex__
|
|
#define __interface__starfield__data__GpuVertex__
|
|
|
|
#include "starfield/data/InputVertex.h"
|
|
|
|
namespace starfield {
|
|
|
|
class GpuVertex {
|
|
public:
|
|
GpuVertex() { }
|
|
|
|
GpuVertex(InputVertex const& inputVertex);
|
|
|
|
unsigned getColor() const { return _color; }
|
|
|
|
private:
|
|
unsigned _color;
|
|
float _valX;
|
|
float _valY;
|
|
float _valZ;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|