Ensure all values are used and unstripped in GL_Vertex_Attr_Zoo

This commit is contained in:
baldurk
2019-09-18 15:28:12 +01:00
parent 612963bb11
commit 40375a6d6e
+11
View File
@@ -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]