mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 20:09:58 -05:00
30bda3fc97
- Added new volumeraycaster classes - Fixed many small warnings in OpenSpace - Linked to updated Ghoul and Openspace-data - TODO cleanup in volumeraycaster classes - TODO Add an advanced volumeraycaster class to use during development
15 lines
340 B
GLSL
15 lines
340 B
GLSL
#version 330
|
|
|
|
layout(location = 0) in vec2 texCoordinate;
|
|
layout(location = 2) in vec3 vertPosition;
|
|
|
|
in vec4 position;
|
|
out vec2 texCoord;
|
|
|
|
const vec2 screenScale = vec2(0.5, 0.5);
|
|
|
|
void main() {
|
|
texCoord = vertPosition.xy*screenScale+screenScale; // scale vertex attribute to [0-1] range
|
|
gl_Position = vec4(vertPosition.xy, 0.0, 1.0);
|
|
}
|