Files
OpenSpace/shaders/quadVert.glsl
T
Jonas Strandstedt 30bda3fc97 Flare and Volumes in scenegraph
- 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
2014-04-14 16:41:57 -04:00

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);
}