Update for texture environment state changes.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 9 Dec 2011 17:03:23 +0000 (17:03 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 9 Dec 2011 17:03:23 +0000 (17:03 +0000)
apps/gl/default.ref.json

index 0d085d3ee06667af0bdfe291f6cc328a2b2899bd..035314a53e1bb2ef68764875348148611ae22804 100644 (file)
       "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED": false,
       "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 0
     },
-    "GL_TEXTURE_FILTER_CONTROL": {
-      "GL_TEXTURE_LOD_BIAS": 0
-    },
     "GL_TEXTURE0": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_BINDING_1D": 0,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE1": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE2": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE3": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE4": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE5": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE6": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE7": {
       "GL_TEXTURE_1D": false,
       "GL_TEXTURE_RECTANGLE": false,
       "GL_TEXTURE_BINDING_RECTANGLE": 0,
       "GL_TEXTURE_CUBE_MAP": false,
-      "GL_TEXTURE_BINDING_CUBE_MAP": 0
+      "GL_TEXTURE_BINDING_CUBE_MAP": 0,
+      "GL_TEXTURE_ENV": {
+        "GL_ALPHA_SCALE": 1,
+        "GL_TEXTURE_ENV_MODE": "GL_MODULATE",
+        "GL_TEXTURE_ENV_COLOR": [0, 0, 0, 0],
+        "GL_COMBINE_RGB": "GL_MODULATE",
+        "GL_COMBINE_ALPHA": "GL_MODULATE",
+        "GL_RGB_SCALE": 1,
+        "GL_SRC0_RGB": "GL_TEXTURE",
+        "GL_SRC1_RGB": "GL_PREVIOUS",
+        "GL_SRC2_RGB": "GL_CONSTANT",
+        "GL_SRC0_ALPHA": "GL_TEXTURE",
+        "GL_SRC1_ALPHA": "GL_PREVIOUS",
+        "GL_SRC2_ALPHA": "GL_CONSTANT",
+        "GL_OPERAND0_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND1_RGB": "GL_SRC_COLOR",
+        "GL_OPERAND2_RGB": "GL_SRC_ALPHA",
+        "GL_OPERAND0_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND1_ALPHA": "GL_SRC_ALPHA",
+        "GL_OPERAND2_ALPHA": "GL_SRC_ALPHA"
+      },
+      "GL_TEXTURE_FILTER_CONTROL": {
+        "GL_TEXTURE_LOD_BIAS": 0
+      },
+      "GL_POINT_SPRITE": {
+        "GL_COORD_REPLACE": false
+      }
     },
     "GL_TEXTURE8": {
       "GL_TEXTURE_1D": false,