mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 16:58:40 +02:00
38 lines
No EOL
909 B
Text
38 lines
No EOL
909 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// simple.vert
|
|
// vertex shader
|
|
//
|
|
// Created by Andrzej Kapolka on 9/15/14.
|
|
// Copyright 2014 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()$>
|
|
|
|
// the interpolated normal
|
|
|
|
out vec3 _normal;
|
|
out vec3 _color;
|
|
out vec2 _texCoord0;
|
|
out vec4 _position;
|
|
|
|
void main(void) {
|
|
_color = inColor.rgb;
|
|
_texCoord0 = inTexCoord0.st;
|
|
_position = inPosition;
|
|
|
|
// standard transform
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
|
|
<$transformModelToEyeDir(cam, obj, inNormal.xyz, _normal)$>
|
|
} |