Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShadowsInfo

Scene level planar shadow related information

Hierarchy

  • ShadowsInfo

Index

Properties

Protected _aspect

_aspect: number = 1

Protected _distance

_distance: number = 0

Protected _enabled

_enabled: boolean = false

Protected _far

_far: number = 30

Protected _near

_near: number = 1

Protected _normal

_normal: Vec3 = new Vec3(0, 1, 0)

Protected _orthoSize

_orthoSize: number = 5

Protected _pcf

_pcf: number = PCFType.HARD

Protected _resource

_resource: Shadows | null = null

Protected _shadowColor

_shadowColor: Color = new Color(0, 0, 0, 76)

Protected _size

_size: Vec2 = new Vec2(512, 512)

Protected _type

_type: number = ShadowType.Planar

Accessors

aspect

  • get aspect(): number
  • set aspect(val: number): void

distance

  • get distance(): number
  • set distance(val: number): void

enabled

  • get enabled(): boolean
  • set enabled(val: boolean): void

far

  • get far(): number
  • set far(val: number): void

near

  • get near(): number
  • set near(val: number): void

normal

  • get normal(): Vec3
  • set normal(val: Vec3): void

orthoSize

  • get orthoSize(): number
  • set orthoSize(val: number): void

pcf

  • get pcf(): number
  • set pcf(val: number): void

shadowColor

  • get shadowColor(): Color
  • set shadowColor(val: Color): void

shadowMapSize

  • get shadowMapSize(): Vec2
  • set shadowMapSize(val: Vec2): void

type

  • get type(): number
  • set type(val: number): void

Methods

activate

  • activate(resource: Shadows): void

setPlaneFromNode

  • setPlaneFromNode(node: Node): void

Generated using TypeDoc