mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 23:39:26 -05:00
Fixed problem with satellite trails rendered at a time prior to TLE epoch. Also debris added shader files to CMake file for space module.
This commit is contained in:
@@ -175,7 +175,7 @@ documentation::Documentation RenderableTrail::Documentation() {
|
||||
|
||||
RenderableTrail::Appearance::Appearance()
|
||||
: properties::PropertyOwner(AppearanceInfo)
|
||||
, lineColor(LineColorInfo, glm::vec3(0.9f, 0.45f, 0.f), glm::vec3(0.f), glm::vec3(1.f))
|
||||
, lineColor(LineColorInfo, glm::vec3(1.0f, 1.0f, 0.f), glm::vec3(0.f), glm::vec3(1.f))
|
||||
, useLineFade(EnableFadeInfo, true)
|
||||
, lineFade(FadeInfo, 0.4f, 0.f, 30.f)
|
||||
, lineWidth(LineWidthInfo, 1.1f, 1.f, 20.f)
|
||||
|
||||
@@ -57,6 +57,8 @@ source_group("Source Files" FILES ${SOURCE_FILES})
|
||||
set(SHADER_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/constellationbounds_fs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/constellationbounds_vs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/debrisViz_fs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/debrisViz_vs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/rings_vs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/rings_fs.glsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders/star_fs.glsl
|
||||
|
||||
@@ -73,6 +73,9 @@ void main() {
|
||||
int intfrac = int(nrOfRevolutions);
|
||||
double doublefrac = double(intfrac);
|
||||
double periodFraction = nrOfRevolutions - doublefrac;
|
||||
if (periodFraction < 0.0) {
|
||||
periodFraction += 1.0;
|
||||
}
|
||||
periodFraction_f = float(periodFraction);
|
||||
|
||||
// same procedure for the current vertex
|
||||
|
||||
Reference in New Issue
Block a user