home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / TRIANGLE / README.TXT < prev    next >
Text File  |  1996-08-28  |  960b  |  20 lines

  1. Triangle
  2. Direct3D Immediate Mode Sample
  3. Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
  4.  
  5. One triangle on a textured background.  The triangle is created by
  6. specifying the screen coordinates for the vertices using TLVERTEXs.
  7.  
  8. The top left vertex, the first vertex in the triangle data, has a
  9. diffuse color of blue.  Switching between flat and gouraud shading
  10. changes the effect this vertex has on the lighting across the
  11. triangle.  When flat shading, the first vertex specifies the lighting
  12. for the entire triangle. When gouraud shading, the lighting is
  13. interpolated across the triangle.  Lighting is different in the two
  14. software renderers.  The RAMP driver does not modulate the texture's
  15. color with the material color.
  16.  
  17. The rhw value of the top right vertex is larger than the other
  18. two; it is closer to the eye.  Turning perspective correction on and
  19. off changes the interpolation of the texture across the triangle.
  20.