PixiThree - v0.0.16
    Preparing search index...

    Interface PixiViewParentThreeContextValue

    Parent Three context for coordinate mapping from PixiTexture to parent Three scene. Only available inside a PixiTexture context.

    interface PixiViewParentThreeContextValue {
        mapPixiToParentPixi: (point: Point, out?: Point) => Point[];
        tracePixiToParentThree: (point: Point) => UvTrace[];
        tracePixiToParentThreeLocal: (point: Point) => UvTrace[];
    }
    Index

    Properties

    mapPixiToParentPixi: (point: Point, out?: Point) => Point[]

    Maps Pixi texture coordinates to global Pixi parent coordinates. Returns array of Points since UV can map to multiple mesh positions.

    Type Declaration

      • (point: Point, out?: Point): Point[]
      • Parameters

        • point: Point

          Pixi Point in texture space

        • Optionalout: Point

          Optional Point to store the first result

        Returns Point[]

        Array of Points in global Pixi parent coords

    tracePixiToParentThree: (point: Point) => UvTrace[]

    Maps Pixi texture coordinates to world coordinates in the parent Three scene.

    Type Declaration

      • (point: Point): UvTrace[]
      • Parameters

        • point: Point

          Pixi Point in texture space

        Returns UvTrace[]

        Array of results with position/normal in parent world coords

    tracePixiToParentThreeLocal: (point: Point) => UvTrace[]

    Maps Pixi texture coordinates to local coordinates on the parent Three mesh surface.

    Type Declaration

      • (point: Point): UvTrace[]
      • Parameters

        • point: Point

          Pixi Point in texture space

        Returns UvTrace[]

        Array of results with position/normal in local mesh coords