Skip to content

Implement Gourard or Phong shading for TRIANGLE_STRIP primitives #19

Description

@jsocol

Currently the implementation uses flat shading—calculating the surface normal vector and using it at each point on the surface—rather than Gourard or (Blinn–)Phong shading. That's quicker and computationally simple, but it leads to sharp edges when shading adjacent but not coplanar surfaces. Calculating vertex normals for TRIANGLE_STRIP primitives will enable using Gourard or Phong shading which should be much smoother at the edges.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions