summaryrefslogtreecommitdiffstats
path: root/res/effectlib/wireframeCM.glsllib
diff options
context:
space:
mode:
Diffstat (limited to 'res/effectlib/wireframeCM.glsllib')
-rw-r--r--res/effectlib/wireframeCM.glsllib65
1 files changed, 46 insertions, 19 deletions
diff --git a/res/effectlib/wireframeCM.glsllib b/res/effectlib/wireframeCM.glsllib
index d2ca556..fcbf7e9 100644
--- a/res/effectlib/wireframeCM.glsllib
+++ b/res/effectlib/wireframeCM.glsllib
@@ -1,3 +1,33 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 NVIDIA Corporation.
+** Copyright (C) 2017 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt 3D Studio.
+**
+** $QT_BEGIN_LICENSE:GPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 or (at your option) any later version
+** approved by the KDE Free Qt Foundation. The licenses are as published by
+** the Free Software Foundation and appearing in the file LICENSE.GPL3
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#ifndef WIREFRAME_CM_GLSLLIB
#define WIREFRAME_CM_GLSLLIB
@@ -12,33 +42,32 @@ precision highp int;
#define VARYING_NAME(varyingName) varyingName##VX
#endif
-
attribute vec3 VARYING_NAME(varNormal)[];
attribute vec3 VARYING_NAME(varObjPos)[];
varying vec3 varNormal;
varying vec3 varObjPos;
-#if UIC_ENABLE_UV0
+#if QT3DS_ENABLE_UV0
attribute vec3 VARYING_NAME(varTexCoord0)[];
varying vec3 varTexCoord0;
#endif
-#if UIC_ENABLE_TEXTAN
+#if QT3DS_ENABLE_TEXTAN
attribute vec3 VARYING_NAME(varTangent)[];
attribute vec3 VARYING_NAME(varObjTangent)[];
varying vec3 varTangent;
varying vec3 varObjTangent;
#endif
-#if UIC_ENABLE_BINORMAL
+#if QT3DS_ENABLE_BINORMAL
attribute vec3 VARYING_NAME(varBinormal)[];
attribute vec3 VARYING_NAME(varObjBinormal)[];
varying vec3 varBinormal;
varying vec3 varObjBinormal;
#endif
-#if UIC_ENABLE_WORLD_POSITION
+#if QT3DS_ENABLE_WORLD_POSITION
attribute vec3 VARYING_NAME(varWorldPos)[];
varying vec3 varWorldPos;
#endif
@@ -47,7 +76,6 @@ varying vec3 varEdgeDistance;
uniform mat4 viewport_matrix;
-
layout (triangles) in;
layout (triangle_strip, max_vertices = 3) out;
@@ -73,18 +101,18 @@ void main()
varEdgeDistance = vec3(ha*gl_in[0].gl_Position.w, 0.0, 0.0);
varNormal = VARYING_NAME(varNormal)[0];
varObjPos = VARYING_NAME(varObjPos)[0];
-#if UIC_ENABLE_UV0
+#if QT3DS_ENABLE_UV0
varTexCoord0 = VARYING_NAME(varTexCoord0)[0];
#endif
-#if UIC_ENABLE_TEXTAN
+#if QT3DS_ENABLE_TEXTAN
varTangent = VARYING_NAME(varTangent)[0];
varObjTangent = VARYING_NAME(varObjTangent)[0];
#endif
-#if UIC_ENABLE_BINORMAL
+#if QT3DS_ENABLE_BINORMAL
varBinormal = VARYING_NAME(varBinormal)[0];
varObjBinormal = VARYING_NAME(varObjBinormal)[0];
#endif
-#if UIC_ENABLE_WORLD_POSITION
+#if QT3DS_ENABLE_WORLD_POSITION
varWorldPos = VARYING_NAME(varWorldPos)[0];
#endif
@@ -95,18 +123,18 @@ void main()
varEdgeDistance = vec3(0.0, hb*gl_in[1].gl_Position.w, 0.0);
varNormal = VARYING_NAME(varNormal)[1];
varObjPos = VARYING_NAME(varObjPos)[1];
-#if UIC_ENABLE_UV0
+#if QT3DS_ENABLE_UV0
varTexCoord0 = VARYING_NAME(varTexCoord0)[1];
#endif
-#if UIC_ENABLE_TEXTAN
+#if QT3DS_ENABLE_TEXTAN
varTangent = VARYING_NAME(varTangent)[1];
varObjTangent = VARYING_NAME(varObjTangent)[1];
#endif
-#if UIC_ENABLE_BINORMAL
+#if QT3DS_ENABLE_BINORMAL
varBinormal = VARYING_NAME(varBinormal)[1];
varObjBinormal = VARYING_NAME(varObjBinormal)[1];
#endif
-#if UIC_ENABLE_WORLD_POSITION
+#if QT3DS_ENABLE_WORLD_POSITION
varWorldPos = VARYING_NAME(varWorldPos)[1];
#endif
@@ -117,18 +145,18 @@ void main()
varEdgeDistance = vec3(0.0, 0.0, hc*gl_in[2].gl_Position.w);
varNormal = VARYING_NAME(varNormal)[2];
varObjPos = VARYING_NAME(varObjPos)[2];
-#if UIC_ENABLE_UV0
+#if QT3DS_ENABLE_UV0
varTexCoord0 = VARYING_NAME(varTexCoord0)[2];
#endif
-#if UIC_ENABLE_TEXTAN
+#if QT3DS_ENABLE_TEXTAN
varTangent = VARYING_NAME(varTangent)[2];
varObjTangent = VARYING_NAME(varObjTangent)[2];
#endif
-#if UIC_ENABLE_BINORMAL
+#if QT3DS_ENABLE_BINORMAL
varBinormal = VARYING_NAME(varBinormal)[2];
varObjBinormal = VARYING_NAME(varObjBinormal)[2];
#endif
-#if UIC_ENABLE_WORLD_POSITION
+#if QT3DS_ENABLE_WORLD_POSITION
varWorldPos = VARYING_NAME(varWorldPos)[2];
#endif
@@ -138,5 +166,4 @@ void main()
EndPrimitive();
}
-
#endif