15bd8deadSopenharmony_ciName 25bd8deadSopenharmony_ci 35bd8deadSopenharmony_ci OES_texture_env_crossbar 45bd8deadSopenharmony_ci 55bd8deadSopenharmony_ciName Strings 65bd8deadSopenharmony_ci 75bd8deadSopenharmony_ci GL_OES_texture_env_crossbar 85bd8deadSopenharmony_ci 95bd8deadSopenharmony_ciContact 105bd8deadSopenharmony_ci 115bd8deadSopenharmony_ci 125bd8deadSopenharmony_ciNotice 135bd8deadSopenharmony_ci 145bd8deadSopenharmony_ci Copyright (c) 2005-2013 The Khronos Group Inc. Copyright terms at 155bd8deadSopenharmony_ci http://www.khronos.org/registry/speccopyright.html 165bd8deadSopenharmony_ci 175bd8deadSopenharmony_ciSpecification Update Policy 185bd8deadSopenharmony_ci 195bd8deadSopenharmony_ci Khronos-approved extension specifications are updated in response to 205bd8deadSopenharmony_ci issues and bugs prioritized by the Khronos OpenGL ES Working Group. For 215bd8deadSopenharmony_ci extensions which have been promoted to a core Specification, fixes will 225bd8deadSopenharmony_ci first appear in the latest version of that core Specification, and will 235bd8deadSopenharmony_ci eventually be backported to the extension document. This policy is 245bd8deadSopenharmony_ci described in more detail at 255bd8deadSopenharmony_ci https://www.khronos.org/registry/OpenGL/docs/update_policy.php 265bd8deadSopenharmony_ci 275bd8deadSopenharmony_ciStatus 285bd8deadSopenharmony_ci 295bd8deadSopenharmony_ci 305bd8deadSopenharmony_ciVersion 315bd8deadSopenharmony_ci 325bd8deadSopenharmony_ci Last modified date: May 18, 2005 335bd8deadSopenharmony_ci 345bd8deadSopenharmony_ciNumber 355bd8deadSopenharmony_ci 365bd8deadSopenharmony_ci OpenGL ES Extension #21 375bd8deadSopenharmony_ci 385bd8deadSopenharmony_ciDependencies 395bd8deadSopenharmony_ci 405bd8deadSopenharmony_ci OpenGL ES 1.1 is required. 415bd8deadSopenharmony_ci 425bd8deadSopenharmony_ci This extension is based on the ARB_texture_env_crossbar 435bd8deadSopenharmony_ci extension specification. 445bd8deadSopenharmony_ci 455bd8deadSopenharmony_ciOverview 465bd8deadSopenharmony_ci 475bd8deadSopenharmony_ci This extension adds the capability to use the texture color from 485bd8deadSopenharmony_ci other texture units as sources to the COMBINE enviornment 495bd8deadSopenharmony_ci function. OpenGL ES 1.1 defined texture combine functions which 505bd8deadSopenharmony_ci could use the color from the current texture unit as a source. 515bd8deadSopenharmony_ci This extension adds the ability to use the color from any texture 525bd8deadSopenharmony_ci unit as a source. 535bd8deadSopenharmony_ci 545bd8deadSopenharmony_ciIssues 555bd8deadSopenharmony_ci 565bd8deadSopenharmony_ci Please refer to the ARB_texture_env_crossbar extension specification. 575bd8deadSopenharmony_ci 585bd8deadSopenharmony_ci 595bd8deadSopenharmony_ciNew Procedures and Functions 605bd8deadSopenharmony_ci 615bd8deadSopenharmony_ci None 625bd8deadSopenharmony_ci 635bd8deadSopenharmony_ciNew Tokens 645bd8deadSopenharmony_ci 655bd8deadSopenharmony_ci Accepted by the <params> parameter of TexEnvf, TexEnvi, TexEnvfv, 665bd8deadSopenharmony_ci and TexEnviv when the <pname> parameter value is SOURCE0_RGB, 675bd8deadSopenharmony_ci SOURCE1_RGB, SOURCE2_RGB, SOURCE0_ALPHA, 685bd8deadSopenharmony_ci SOURCE1_ALPHA, or SOURCE2_ALPHA 695bd8deadSopenharmony_ci 705bd8deadSopenharmony_ci TEXTURE<n> 0x84C0+<n> 715bd8deadSopenharmony_ci 725bd8deadSopenharmony_ci where <n> is in the range 0 to MAX_TEXTURE_UNITS. 735bd8deadSopenharmony_ci 745bd8deadSopenharmony_ciAdditions to Chapter 2 of the GL Specification (OpenGL Operation) 755bd8deadSopenharmony_ci 765bd8deadSopenharmony_ci None 775bd8deadSopenharmony_ci 785bd8deadSopenharmony_ciAdditions to Chapter 3 of the GL Specification (Rasterization) 795bd8deadSopenharmony_ci 805bd8deadSopenharmony_ci The arguments Arg0, Arg1 and Arg2 are determined by the values of 815bd8deadSopenharmony_ci SOURCE<n>_RGB, SOURCE<n>_ALPHA, OPERAND<n>_RGB and 825bd8deadSopenharmony_ci OPERAND<n>_ALPHA. In the following two tables, Ct and At are 835bd8deadSopenharmony_ci the filtered texture RGB and alpha values; Ct<n> and At<n> are the 845bd8deadSopenharmony_ci filtered texture RGB and alpha values from the texture bound to 855bd8deadSopenharmony_ci texture unit <n>; Cc and Ac are the texture environment RGB and 865bd8deadSopenharmony_ci alpha values; Cf and Af are the RGB and alpha of the primary color 875bd8deadSopenharmony_ci of the incoming fragment; and Cp and Ap are the RGB and alpha 885bd8deadSopenharmony_ci values resulting from the previous texture environment. On texture 895bd8deadSopenharmony_ci environment 0, Cp and Ap are identical to Cf and Af, respectively. 905bd8deadSopenharmony_ci The relationship is described in table 3.5 and 3.6 of the OpenGL ES 1.2 915bd8deadSopenharmony_ci specification. 925bd8deadSopenharmony_ci 935bd8deadSopenharmony_ci Added to table 3.5 of the OpenGL ES 1.2 specification: 945bd8deadSopenharmony_ci 955bd8deadSopenharmony_ci SOURCE<n>_RGB OPERAND<n>_RGB Argument 965bd8deadSopenharmony_ci ------------- -------------- -------- 975bd8deadSopenharmony_ci 985bd8deadSopenharmony_ci TEXTURE<n> SRC_COLOR Ct<n> 995bd8deadSopenharmony_ci ONE_MINUS_SRC_COLOR (1-Ct<n>) 1005bd8deadSopenharmony_ci SRC_ALPHA At<n> 1015bd8deadSopenharmony_ci ONE_MINUS_SRC_ALPHA (1-At<n>) 1025bd8deadSopenharmony_ci 1035bd8deadSopenharmony_ci Table 3.6: COMBINE_RGB texture functions 1045bd8deadSopenharmony_ci 1055bd8deadSopenharmony_ci Added to table 3.6 of the OpenGL ES 1.2 specification: 1065bd8deadSopenharmony_ci 1075bd8deadSopenharmony_ci 1085bd8deadSopenharmony_ci SOURCE<n>_ALPHA OPERAND<n>_ALPHA Argument 1095bd8deadSopenharmony_ci --------------- ---------------- -------- 1105bd8deadSopenharmony_ci 1115bd8deadSopenharmony_ci TEXTURE<n> SRC_ALPHA At<n> 1125bd8deadSopenharmony_ci ONE_MINUS_SRC_ALPHA (1-At<n>) 1135bd8deadSopenharmony_ci 1145bd8deadSopenharmony_ci Table 3.6: COMBINE_ALPHA texture functions 1155bd8deadSopenharmony_ci 1165bd8deadSopenharmony_ciAdditions to Chapter 4 of the GL Specification (Per-Fragment Operations 1175bd8deadSopenharmony_ciand the Framebuffer) 1185bd8deadSopenharmony_ci 1195bd8deadSopenharmony_ci None 1205bd8deadSopenharmony_ci 1215bd8deadSopenharmony_ciAdditions to Chapter 5 of the GL Specification (Special Functions) 1225bd8deadSopenharmony_ci 1235bd8deadSopenharmony_ci None 1245bd8deadSopenharmony_ci 1255bd8deadSopenharmony_ciAdditions to Chapter 6 of the GL Specification (State and State Requests) 1265bd8deadSopenharmony_ci 1275bd8deadSopenharmony_ci None 1285bd8deadSopenharmony_ci 1295bd8deadSopenharmony_ciAdditions to Appendix F of the GL Specification (ARB Extensions) 1305bd8deadSopenharmony_ci 1315bd8deadSopenharmony_ci Inserted after the second paragraph of F.2.12: 1325bd8deadSopenharmony_ci 1335bd8deadSopenharmony_ci If the value of TEXTURE_ENV_MODE is COMBINE, the texture 1345bd8deadSopenharmony_ci function associated with a given texture unit is computed using 1355bd8deadSopenharmony_ci the values specified by SOURCE<n>_RGB, SOURCE<n>_ALPHA, 1365bd8deadSopenharmony_ci OPERAND<n>_RGB and OPERAND<n>_ALPHA. If TEXTURE<n> is 1375bd8deadSopenharmony_ci specified as SOURCE<n>_RGB or SOURCE<n>_ALPHA, the texture 1385bd8deadSopenharmony_ci value from texture unit <n> will be used in computing the texture 1395bd8deadSopenharmony_ci function for this texture unit. 1405bd8deadSopenharmony_ci 1415bd8deadSopenharmony_ci Inserted after the third paragraph of F.2.12: 1425bd8deadSopenharmony_ci 1435bd8deadSopenharmony_ci If a texture environment for a given texture unit references a 1445bd8deadSopenharmony_ci texture unit that is disabled or does not have a valid texture 1455bd8deadSopenharmony_ci object bound to it, then it is as if texture blending is disabled 1465bd8deadSopenharmony_ci for the given texture unit. Every texture unit implicitly 1475bd8deadSopenharmony_ci references the texture object that is bound to it, regardless 1485bd8deadSopenharmony_ci of the texture function specified by COMBINE_RGB or COMBINE_ALPHA. 1495bd8deadSopenharmony_ci 1505bd8deadSopenharmony_ciAdditions to the GLX Specification 1515bd8deadSopenharmony_ci 1525bd8deadSopenharmony_ci None 1535bd8deadSopenharmony_ci 1545bd8deadSopenharmony_ciGLX Protocol 1555bd8deadSopenharmony_ci 1565bd8deadSopenharmony_ci None 1575bd8deadSopenharmony_ci 1585bd8deadSopenharmony_ciErrors 1595bd8deadSopenharmony_ci 1605bd8deadSopenharmony_ci INVALID_ENUM is generated if <params> value for SOURCE0_RGB, 1615bd8deadSopenharmony_ci SOURCE1_RGB, SOURCE2_RGB, SOURCE0_ALPHA, 1625bd8deadSopenharmony_ci SOURCE1_ALPHA or SOURCE2_ALPHA is not one of TEXTURE, 1635bd8deadSopenharmony_ci CONSTANT, PRIMARY_COLOR, PREVIOUS, or TEXTURE<n>, 1645bd8deadSopenharmony_ci where <n> is in the range 0 to MAX_TEXTURE_UNITS. 1655bd8deadSopenharmony_ci 1665bd8deadSopenharmony_ciNew State 1675bd8deadSopenharmony_ci 1685bd8deadSopenharmony_ci None 169