mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-23 05:19:18 -06: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
@@ -229,7 +229,10 @@ bool RenderableConstellationBounds::isReady() const {
|
||||
void RenderableConstellationBounds::render(const RenderData& data, RendererTasks&) {
|
||||
_program->activate();
|
||||
|
||||
setPscUniforms(*_program, data.camera, data.position);
|
||||
_program->setUniform("campos", glm::vec4(data.camera.positionVec3(), 1.f));
|
||||
_program->setUniform("objpos", glm::vec4(data.modelTransform.translation, 0.f));
|
||||
_program->setUniform("camrot", glm::mat4(data.camera.viewRotationMatrix()));
|
||||
_program->setUniform("scaling", glm::vec2(1.f, 0.f));
|
||||
|
||||
glm::dmat4 modelTransform =
|
||||
glm::translate(glm::dmat4(1.0), data.modelTransform.translation) *
|
||||
|
||||
Reference in New Issue
Block a user