mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 18:11:01 -05:00
Cleanup for Spheres and PSC (#827)
* Fade fixes * Clean up RenderableSphere. Add orientation properties. * Sane defaults for Digital Universe * Clean up New Horizons related code * Add basic scene * Add ability to initialize rotation as quaternion and mat3 * Adapt legacy code to new Renderable interface
This commit is contained in:
committed by
Alexander Bock
parent
e78121febc
commit
50ff2d96d2
@@ -364,7 +364,8 @@ void AtmosphereDeferredcaster::preRaycast(const RenderData& renderData,
|
||||
|
||||
// First we determine if the caster is shadowing the current planet
|
||||
// (all calculations in World Coordinates):
|
||||
glm::dvec3 planetCasterVec = casterPos - renderData.position.dvec3();
|
||||
glm::dvec3 planetCasterVec =
|
||||
casterPos - renderData.modelTransform.translation;
|
||||
glm::dvec3 sourceCasterVec = casterPos - sourcePos;
|
||||
double sc_length = glm::length(sourceCasterVec);
|
||||
glm::dvec3 planetCaster_proj = (
|
||||
@@ -378,7 +379,7 @@ void AtmosphereDeferredcaster::preRaycast(const RenderData& renderData,
|
||||
|
||||
double casterDistSun = glm::length(casterPos - sunPosWorld);
|
||||
double planetDistSun = glm::length(
|
||||
renderData.position.dvec3() - sunPosWorld
|
||||
renderData.modelTransform.translation - sunPosWorld
|
||||
);
|
||||
|
||||
ShadowRenderingStruct shadowData;
|
||||
|
||||
Reference in New Issue
Block a user