mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
41 lines
No EOL
998 B
Text
41 lines
No EOL
998 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// paintStroke.vert
|
|
// vertex shader
|
|
//
|
|
// Created by Eric Levin on 7/20/15.
|
|
// 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/Color.slh@>
|
|
<@include gpu/Transform.slh@>
|
|
<$declareStandardTransform()$>
|
|
|
|
// the interpolated normal
|
|
out vec3 interpolatedNormal;
|
|
|
|
//the diffuse texture
|
|
out vec2 varTexcoord;
|
|
|
|
out vec4 varColor;
|
|
|
|
void main(void) {
|
|
|
|
varTexcoord = inTexCoord0.st;
|
|
|
|
// pass along the diffuse color
|
|
varColor = colorToLinearRGBA(inColor);
|
|
|
|
|
|
// standard transform
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
|
|
<$transformModelToEyeDir(cam, obj, inNormal.xyz, interpolatedNormal)$>
|
|
} |