mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-23 09:59:35 +02:00
29 lines
814 B
Text
29 lines
814 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// skin_model_shadow.vert
|
|
// vertex shader
|
|
//
|
|
// Created by Andrzej Kapolka on 3/24/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()$>
|
|
|
|
<@include Skinning.slh@>
|
|
|
|
void main(void) {
|
|
vec4 position = vec4(0.0, 0.0, 0.0, 0.0);
|
|
skinPosition(inSkinClusterIndex, inSkinClusterWeight, inPosition, position);
|
|
|
|
// standard transform
|
|
TransformCamera cam = getTransformCamera();
|
|
TransformObject obj = getTransformObject();
|
|
<$transformModelToClipPos(cam, obj, position, gl_Position)$>
|
|
}
|