Shadow Techniques demo: Collapsing a matrix

This topic contains 1 reply, has 2 voices, and was last updated by  Arron 6 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30591

    Hello, on the 1.1 Shadow Techniques example for Projected Geometry, what is the reasoning behind the routine ShadowMatrix for collapsing the mesh down in the Y axis?

    #35018

    Arron
    Member

    Hi.

    This function generates a matrix which is multiplied with the view matrix and subsequently transforms the teapot mesh such that it appears flattened and sheared in the light direction (i.e a projective shadow). The shadow matrix is multiplied in at the top of the stack – after the view matrix, but before model transform matrices.

    This is a common technique that is easy to accomplish and provides a good quality effect as long as the shadow receiver is a flat plane.Arron2011-08-02 11:47:05

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.