Face

Description

Name

enum Tinman.Cubemap.Face

Used by

Coords.face / CubeFace.face / Rect.face

A face of a cubemap:

   +-------+       Y-  Z+
  /.      /|        | /
 / .     / |        |/
+-------+  |   X- --+-- X+   right-handed CS
|  .....|..+       /|
| .     | /       / |
|.      |/       Z-  Y+
+-------+

For each cubemap face, a local coordinate system is defined (cubemap face coordinates):

     Y-  Z+                                  O--------------O
      | /                                    |              |
      |/                                     | ^ fx         |
 X- --+-- X+                                 | |            |
     /|                                      | |    Y-      |
    / |                                      | |         fy |
  Z-  Y+                                     | o----------> |
                                             |              |
O--------------O--------------O--------------O--------------O
|              |              |              |              |
| o----------> | o----------> | o----------> | o----------> |
| |         fx | |         fx | |         fx | |         fx |
| |    Z-      | |    X+      | |    Z+      | |    X-      |
| |            | |            | |            | |            |
| V fy         | V fy         | V fy         | V fy         |
|              |              |              |              |
O--------------O--------------O--------------O--------------O
                                             |              |
                                             | <----------o |
                                             | fy         | |
      +---------------------------+          |      Y+    | |
      | fx := Cubemap face X-axis |          |            | |
      | fy := Cubemap face Y-axis |          |         fx V |
      +---------------------------+          |              |
                                             O--------------O

Items

# Name Tag

0

PosX

-

The X+ cubemap face.

   +-------#       Y-  Z+
  /.      ##        | /
 / .     # #        |/
+-------#  #   X- --+-- X+   right-handed CS
|  .....#..#       /|
| .     # #       / |
|.      ##       Z-  Y+
+-------#

1

NegX

-

The X- cubemap face.

   #-------+       Y-  Z+
  ##      /|        | /
 # #     / |        |/
#-------+  |   X- --+-- X+   right-handed CS
#  #....|  +       /|
# #     | /       / |
##      |/       Z-  Y+
#-------+

2

PosY

-

The Y+ cubemap face.

   +-------+       Y-  Z+
  /.      /|        | /
 / .     / |        |/
+-------+  |   X- --+-- X+   right-handed CS
|  #####|###       /|
| #     | #       / |
|#      |#       Z-  Y+
#########

3

NegY

-

The Y- cubemap face.

   #########       Y-  Z+
  #       #|        | /
 #       # |        |/
#########  |   X- --+-- X+   right-handed CS
|  .....|..+       /|
| .     | /       / |
|.      |/       Z-  Y+
+-------+

4

PosZ

-

The Z+ cubemap face.

   #########       Y-  Z+
  /#      /#        | /
 / #     / #        |/
+-------+  #   X- --+-- X+   right-handed CS
|  #####|###       /|
| .     | /       / |
|.      |/       Z-  Y+
+-------+

5

NegZ

-

The Z- cubemap face.

   +-------+       Y-  Z+
  /.      /|        | /
 / .     / |        |/
#########  |   X- --+-- X+   right-handed CS
#       #..+       /|
#       # /       / |
#       #/       Z-  Y+
#########

6

None

-

No cubemap face.

   +-------+       Y-  Z+
  /.      /|        | /
 / .     / |        |/
+-------+  |   X- --+-- X+   right-handed CS
|  .....|..+       /|
| .     | /       / |
|.      |/       Z-  Y+
+-------+