Class: GlobalFog
screen space fog
Hierarchy
PostBase
↳
GlobalFog
Constructors
Properties
Accessors
- fogType
- fogHeightScale
- start
- end
- ins
- density
- skyRoughness
- skyFactor
- overrideSkyFactor
- falloff
- rayLength
- scatteringExponent
- dirHeightLine
Methods
Constructors
constructor
• new GlobalFog(): GlobalFog
Returns
Overrides
PostBase.constructor
Defined in
src/gfx/renderJob/post/GlobalFog.ts:37
Properties
fogOpTexture
• fogOpTexture: VirtualTexture
Defined in
src/gfx/renderJob/post/GlobalFog.ts:32
rtFrame
• rtFrame: RTFrame
Defined in
src/gfx/renderJob/post/GlobalFog.ts:91
enable
• enable: boolean
= true
Inherited from
PostBase.enable
Defined in
src/gfx/renderJob/post/PostBase.ts:20
postRenderer
• postRenderer: PostRenderer
Inherited from
PostBase.postRenderer
Defined in
src/gfx/renderJob/post/PostBase.ts:21
Accessors
fogType
• get
fogType(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:118
• set
fogType(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:115
fogHeightScale
• get
fogHeightScale(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:124
• set
fogHeightScale(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:121
start
• get
start(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:130
• set
start(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:127
end
• get
end(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:136
• set
end(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:133
ins
• get
ins(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:142
• set
ins(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:139
density
• get
density(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:148
• set
density(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:145
skyRoughness
• get
skyRoughness(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:154
• set
skyRoughness(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:151
skyFactor
• get
skyFactor(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:160
• set
skyFactor(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:157
overrideSkyFactor
• get
overrideSkyFactor(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:167
• set
overrideSkyFactor(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:164
falloff
• get
falloff(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:189
• set
falloff(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:185
rayLength
• get
rayLength(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:197
• set
rayLength(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:193
scatteringExponent
• get
scatteringExponent(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:205
• set
scatteringExponent(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:201
dirHeightLine
• get
dirHeightLine(): number
Returns
number
Defined in
src/gfx/renderJob/post/GlobalFog.ts:213
• set
dirHeightLine(v
): void
Parameters
Name | Type |
---|---|
v | number |
Returns
void
Defined in
src/gfx/renderJob/post/GlobalFog.ts:209
Methods
onResize
▸ onResize(): void
Returns
void
Overrides
PostBase.onResize
Defined in
src/gfx/renderJob/post/GlobalFog.ts:254
destroy
▸ destroy(force?
): void
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
void
Inherited from
PostBase.destroy