Options
All
  • Public
  • Public/Protected
  • All
Menu

Plane used by the Raytraces to draw the generated Texture.

Hierarchy

  • RayPlane

Implements

Index

Constructors

constructor

  • new RayPlane(gl: WebGL2RenderingContext, texture: string, width?: number, height?: number): RayPlane
  • Parameters

    • gl: WebGL2RenderingContext
    • texture: string
    • Default value width: number = 2
    • Default value height: number = 2

    Returns RayPlane

Properties

Private coordbuffer

coordbuffer: WebGLBuffer

The buffer containing the plane's texturecoordinates.

Private gl

gl: WebGL2RenderingContext

Private height

height: number

Readonly shader

shader: string = "TextureSimple"

Key of the corresponding Shader in the Shadermanager.

Private texture

texture: string

Private vertexbuffer

vertexbuffer: WebGLBuffer

The buffer containing the plane's vertices.

Private width

width: number

Methods

intersect

  • Used for drawing with the raytracer.

    Ignored by the Raytracer

    Parameters

    • ray: Ray

      Ray to intersect with.

    • transformation: Matrix4

      Transformation of the object into worldspace.

    Returns Intersection

render

  • render(shader: Shader): void
  • Method to used for drawing with rasterizer.

    Parameters

    • shader: Shader

      Shader used for rendering.

    Returns void

Generated using TypeDoc