mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
25 lines
No EOL
646 B
Text
25 lines
No EOL
646 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// particle vertex shader
|
|
//
|
|
// 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/Color.slh@>
|
|
<@include gpu/Transform.slh@>
|
|
<$declareStandardTransform()$>
|
|
|
|
out vec4 _color;
|
|
|
|
void main(void) {
|
|
// pass along the color
|
|
_color = colorToLinearRGBA(inColor);
|
|
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
|
|
} |