Vixen
02b45cc4
csharp
public enum UvProjection

How a face's texture coordinates are worked out from where it is.

Read the guide page for this →

Remarks

⚠ World is the default and doc 24's P5 says why in one sentence: a block-out box scaled 8×3 must not stretch its texels. Every unwrapper answers "where on this surface am I" and every one of them needs the surface to have been laid out; a block-out has not been laid out and never will be, because it exists to be replaced. What makes proportion readable at a glance is a checker whose squares are a fixed number of metres everywhere in the level, which is the projection that ignores the object entirely.

Fields and properties (3)

  • World

    From the world position, on whichever axis pair each face most faces.

  • Box

    The same, in the mesh's own space, so the mapping travels with the object.

  • Planar

    From one axis for every face, whichever way each one points.

Used by (5)

  • MeshSurfaceTestsVixen.Geometry.Tests
  • MeshSurfacesVixen.Geometry
  • BlockoutModeVixen.Editor.Blockout
  • BlockoutSurfaceTestsVixen.Editor.Blockout.Tests
  • BlockoutSurfacesVixen.Editor.Blockout