From 40375a6d6e5cd39e6075ae2027e8be47f4176d02 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 18 Sep 2019 15:28:12 +0100 Subject: [PATCH] Ensure all values are used and unstripped in GL_Vertex_Attr_Zoo --- util/test/demos/gl/gl_vertex_attr_zoo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/util/test/demos/gl/gl_vertex_attr_zoo.cpp b/util/test/demos/gl/gl_vertex_attr_zoo.cpp index 82f97e167..7e7cc4a6f 100644 --- a/util/test/demos/gl/gl_vertex_attr_zoo.cpp +++ b/util/test/demos/gl/gl_vertex_attr_zoo.cpp @@ -92,6 +92,17 @@ void main() { Color = vec4(0, 1.0f, 0, 1); + // ensure all values are used + Color.g += abs(InSNorm.x); + Color.g += InUNorm.x; + Color.g += float(InUInt.x); + Color.g += float(InDouble.x); + Color.g += float(InArray[0].x); + Color.g += float(InArray[1].x); + Color.g += float(InArray[2].x); + Color.g += float(InMatrix[0][0]); + Color.g += float(InMatrix[1][1]); + // check values came through correctly // SNorm should be in [-1, 1]