Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the bare minimum for a Geometry.

Hierarchy

  • IGeometry

Implemented by

Index

Properties

Methods

Properties

Readonly shader

shader: string

Each shader must specify which shader must be used to draw it.

Methods

intersect

  • Checks if the Ray intersects with the Geometry.

    Parameters

    • ray: Ray

      A Camera generated Ray used for Intersection.

    • transformation: Matrix4

    Returns Intersection

render

  • render(shader: Shader): void
  • The Shader used for drawing.

    Parameters

    • shader: Shader

      Shader used to draw the Geometry.

    Returns void

Generated using TypeDoc