mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 21:19:46 -06:00
* Physically-based star rendering. * New Tully Pic Galaxies speck file w/o Milky Way * Removed PSC from stars rendering. * Avoiding extra calculations during shading. * Removed bug in billboard maximum size code. * New method to get the current viewport resolution. Used e.g. when rendering stereo side-by-side configuration. * Same as stereo stars. * Improved configuration. * Stars camera orientation. * Separated changes in billboards. * Adde min size control. * Setting minimum size. * Changed eye position. Changed data array nome inside shaders to a more accurate representation of the data. * Billboards reflecting actual stars sizes. * Scaling stars size based on luminosity, Abs Mag and size. * Rendering to a texture instead of fragment calculation for each star. * Added default parameters, new configurations and updated parameters. * Updated speck file handling to reflect a more general specification. * Added apparent magnitude from the speck files. * Set correct star values values for Apogee and Galah * Changed position from vec4 to vec3 to save GPU memory.
37 lines
2.3 KiB
GLSL
37 lines
2.3 KiB
GLSL
/*****************************************************************************************
|
|
* *
|
|
* OpenSpace *
|
|
* *
|
|
* Copyright (c) 2014-2019 *
|
|
* *
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
|
* software and associated documentation files (the "Software"), to deal in the Software *
|
|
* without restriction, including without limitation the rights to use, copy, modify, *
|
|
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to *
|
|
* permit persons to whom the Software is furnished to do so, subject to the following *
|
|
* conditions: *
|
|
* *
|
|
* The above copyright notice and this permission notice shall be included in all copies *
|
|
* or substantial portions of the Software. *
|
|
* *
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
|
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A *
|
|
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT *
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF *
|
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE *
|
|
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
|
****************************************************************************************/
|
|
|
|
#version __CONTEXT__
|
|
|
|
layout(location = 0) in vec4 in_position;
|
|
|
|
out vec2 psfCoords;
|
|
out vec2 texturesCoords;
|
|
|
|
void main() {
|
|
gl_Position = vec4(in_position.xy, 0.f, 1.f);
|
|
psfCoords = vec2(in_position);
|
|
texturesCoords = vec2(in_position.zw);
|
|
}
|