Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • tests
  • test_utils
  • ANGLETest.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Add a test for flat shader 'provoking vertex'. · d55d283c
    Jamie Madill authored Oct 27, 2015
    The provoking vertex, or leading vertex, is the vertex in a triangle
    which produces the value that gets used for a flat-shaded triangle.
    Flat shading means the same value gets used for the entire triangle.
    
    It seems as though D3D and OpenGL have different definitions of which
    vertex is the leading/provoking one; GL says it is the *last* vertex
    of a primitive, while while D3D says it is the first.
    
    Additional complexity comes about from triangle strips, which switch
    winding order, and primitive restart, which defines new primitives in
    the middle of prior primitives.
    
    BUG=angleproject:754
    
    Change-Id: If1217cba33dabf3b1e4ad13fd639d049cb16fe44
    Reviewed-on: https://chromium-review.googlesource.com/309152Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
    d55d283c
ANGLETest.cpp 7.29 KB
EditWeb IDE
×

Replace ANGLETest.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.