Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FogInfo

全局雾相关信息

Hierarchy

  • FogInfo

Index

Properties

Protected _enabled

_enabled: boolean = false

Protected _fogAtten

_fogAtten: number = 5

Protected _fogColor

_fogColor: Color = new Color('#C8C8C8')

Protected _fogDensity

_fogDensity: number = 0.3

Protected _fogEnd

_fogEnd: number = 300

Protected _fogRange

_fogRange: number = 1.2

Protected _fogStart

_fogStart: number = 0.5

Protected _fogTop

_fogTop: number = 1.5

Protected _resource

_resource: Fog | null = null

Protected _type

_type: number = FogType.LINEAR

Static FogType

FogType: { EXP: number; EXP_SQUARED: number; LAYERED: number; LINEAR: number } = FogType

Type declaration

  • EXP: number
    zh

    指数雾。

    en

    Exponential fog

    readonly
  • EXP_SQUARED: number
    zh

    指数平方雾。

    en

    Exponential square fog

    readonly
  • LAYERED: number
    zh

    层叠雾。

    en

    Layered fog

    readonly
  • LINEAR: number
    zh

    线性雾。

    en

    Linear fog

    readonly

Accessors

enabled

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

fogAtten

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

fogColor

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

fogDensity

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

fogEnd

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

fogRange

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

fogStart

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

fogTop

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

type

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

Methods

activate

  • activate(resource: Fog): void

Generated using TypeDoc