mirror of
https://github.com/overte-org/overte.git
synced 2025-07-14 01:56:48 +02:00
36 lines
785 B
Text
36 lines
785 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// hmd_ui.vert
|
|
// vertex shader
|
|
//
|
|
// Created by Sam Gondelman on 9/28/17.
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
<@include gpu/Inputs.slh@>
|
|
<@include gpu/Transform.slh@>
|
|
<$declareStandardTransform()$>
|
|
|
|
struct HUDData {
|
|
float alpha;
|
|
};
|
|
|
|
layout(std140) uniform hudBuffer {
|
|
HUDData hud;
|
|
};
|
|
|
|
out vec2 _texCoord0;
|
|
|
|
void main() {
|
|
_texCoord0 = inTexCoord0.st;
|
|
|
|
// standard transform
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
|
|
}
|