mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-19 12:49:06 +02:00
35 lines
No EOL
957 B
Text
35 lines
No EOL
957 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// standardTransformPNTC.slv
|
|
// vertex shader
|
|
//
|
|
// Created by Sam Gateau on 6/10/2015.
|
|
// Copyright 2015 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()$>
|
|
|
|
out vec3 varPosition;
|
|
out vec3 varNormal;
|
|
out vec2 varTexCoord0;
|
|
out vec4 varColor;
|
|
|
|
void main(void) {
|
|
varTexCoord0 = inTexCoord0.st;
|
|
varColor = colorToLinearRGBA(inColor);
|
|
|
|
// standard transform
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, inPosition, gl_Position)$>
|
|
<$transformModelToWorldDir(cam, obj, inNormal.xyz, varNormal)$>
|
|
varPosition = inPosition.xyz;
|
|
} |