home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / OpenGL / opengldoc / glspec / texture_env_add.spec < prev    next >
Encoding:
Text File  |  1996-11-11  |  3.4 KB  |  123 lines

  1. Name
  2.  
  3.     SGIX_texture_add_env
  4.  
  5. Name Strings
  6.  
  7.     GL_SGIX_texture_add_env
  8.  
  9. Version
  10.  
  11.     $Date: 1996/04/01 23:23:23 $ $Revision: 1.1 $
  12.  
  13. Number
  14.  
  15.     69
  16.  
  17. Dependencies
  18.  
  19.     None
  20.  
  21. Overview
  22.  
  23.     Two new texture environment functions are supported with the following 
  24.     equations: 
  25.     1. add          Cv = Cf + Cc * Ct
  26.     2. add signed   Cv = Cf + Cc * (Ct - 0.5)
  27.     New functions may be  specified by calling glTexEnv with one of the following
  28.     tokens: GL_ADD_SGIX or GL_ADD_GISNED_SGIX.
  29.     
  30.  
  31. New Procedures and Functions
  32.  
  33.     None
  34.  
  35. New Tokens
  36.  
  37.     Accepted by the <params> parameter of TexEnvf, TexEnvi, TexEnvfv, and
  38.     TexEnvfi when the <pname> parameter value is
  39.     GL_TEXTURE_ENV_MODE
  40.  
  41.     GL_ADD_SGIX                      0x80BE
  42.     GL_ADD_SIGNED_SGIX               0x80BF
  43.  
  44.  
  45. Additions to Chapter 2 of the GL Specification (OpenGL Operation)
  46.  
  47.     None
  48.  
  49. Additions to Chapter 3 of the GL Specification (Rasterization)
  50.  
  51.  
  52.                 Texture Environment
  53.                 -------------------
  54.  
  55.     Base Texture Format    REPLACE  MODULATE  BLEND  DECAL  ADD                    ADD_SIGNED
  56.     -------------------    -------  --------  -----  -----  ---                    ----------
  57.  
  58.     LUMINANCE         ...      ...       ...    ...   Rv = Rf + Rc * Rt    Rv = Rf + Rc * (Rt - 0.5)
  59.                  ...      ...       ...    ...   Gv = Gf + Gc * Gt    Gv = Gf + Gc * (Gt - 0.5)
  60.                  ...      ...       ...    ...   Bv = Bf + Bc * Bt    Bv = Bf + Bc * (Bt - 0.5)
  61.                  ...      ...       ...    ...   Av = Af        Av = Af
  62.  
  63.     ALPHA             ...      ...       ...    ...   Rv = Rf        Rv = Rf
  64.                  ...      ...       ...    ...   Gv = Gf        Gv = Gf
  65.                  ...      ...       ...    ...   Bv = Bf        Bv = Bf
  66.                  ...      ...       ...    ...   Av = Af * At        Av = Af * At
  67.  
  68.     INTENSITY_EXT         ...      ...       ...    ...   Rv = Rf + Rc * Rt      Rv = Rf + Rc * (Rt - 0.5)
  69.                  ...      ...       ...    ...   Gv = Gf + Gc * Gt      Gv = Gf + Gc * (Gt - 0.5)
  70.                  ...      ...       ...    ...   Bv = Bf + Bc * Bt      Bv = Bf + Bc * (Bt - 0.5)
  71.                  ...      ...       ...    ...   Av = Af + Ac * At      Av = Af + Ac * (At - 0.5)
  72.  
  73.     LUMINANCE_ALPHA         ...      ...       ...    ...   Rv = Rf + Rc * Rt      Rv = Rf + Rc * (Rt - 0.5)
  74.                  ...      ...       ...    ...   Gv = Gf + Gc * Gt      Gv = Gf + Gc * (Gt - 0.5)
  75.                  ...      ...       ...    ...   Bv = Bf + Bc * Bt      Bv = Bf + Bc * (Bt - 0.5)
  76.                  ...      ...       ...    ...   Av = Af * At           Av = Af * At
  77.  
  78.     RGB             ...      ...       ...    ...   Rv = Rf + Rc * Rt      Rv = Rf + Rc * (Rt - 0.5)
  79.                  ...      ...       ...    ...   Gv = Gf + Gc * Gt      Gv = Gf + Gc * (Gt - 0.5)
  80.                  ...      ...       ...    ...   Bv = Bf + Bc * Bt      Bv = Bf + Bc * (Bt - 0.5)
  81.                  ...      ...       ...    ...   Av = Af        Av = Af
  82.  
  83.     RGBA             ...      ...       ...    ...   Rv = Rf + Rc * Rt      Rv = Rf + Rc * (Rt - 0.5)
  84.                  ...      ...       ...    ...   Gv = Gf + Gc * Gt      Gv = Gf + Gc * (Gt - 0.5)
  85.                  ...      ...       ...    ...   Bv = Bf + Bc * Bt      Bv = Bf + Bc * (Bt - 0.5)
  86.                  ...      ...       ...    ...   Av = Af * At        Av = Af * At
  87.  
  88.     Table 3.8: Texture functions.
  89.  
  90.  
  91. Additions to Chapter 4 of the GL Specification (Per-Fragment Operations
  92. and the Framebuffer)
  93.  
  94.     None
  95.  
  96. Additions to Chapter 5 of the GL Specification (Special Functions)
  97.  
  98.     None
  99.  
  100. Additions to Chapter 6 of the GL Specification (State and State Requests)
  101.  
  102.     None
  103.  
  104. Additions to the GLX Specification
  105.  
  106.     None
  107.  
  108. GLX Protocol
  109.  
  110.     None
  111.  
  112. Errors
  113.  
  114.     None
  115.  
  116. New State
  117.  
  118.     None
  119.  
  120. New Implementation Dependent State
  121.  
  122.     None
  123.