Skip to content

@orillusion/core


Class: GodRayPost ​

Defined in: src/gfx/renderJob/post/GodRayPost.ts:27

God-ray (light-shaft) post-processing effect. A compute pass marches the scene depth/G-buffer to accumulate volumetric light scattering along view rays toward the light, with temporal history reuse, then blends the result over the scene color.

Constructors ​

Constructor ​

new GodRayPost(): GodRayPost

Defined in: src/gfx/renderJob/post/GodRayPost.ts:47

Returns ​

GodRayPost

Overrides ​

PostBase.constructor

Properties ​

rtFrame ​

rtFrame: RTFrame

Defined in: src/gfx/renderJob/post/GodRayPost.ts:45


enable ​

enable: boolean = true

Defined in: src/gfx/renderJob/post/PostBase.ts:23

Inherited from ​

PostBase.enable


isFinalPass ​

isFinalPass: boolean = false

Defined in: src/gfx/renderJob/post/PostBase.ts:27

When true, PostPass iterates this post AFTER every regular post regardless of attach order — used by TonemapPost so the ACES curve always lands on the fully-composited HDR signal.

Inherited from ​

PostBase.isFinalPass


postRenderer ​

postRenderer: PostPass

Defined in: src/gfx/renderJob/post/PostBase.ts:28

Inherited from ​

PostBase.postRenderer


rendererPassState ​

rendererPassState: RendererPassState

Defined in: src/gfx/renderJob/post/PostBase.ts:29

Inherited from ​

PostBase.rendererPassState


_boundCtx ​

_boundCtx: Context3D = null

Defined in: src/gfx/renderJob/post/PostBase.ts:30

Inherited from ​

PostBase._boundCtx

Accessors ​

blendColor ​

Get Signature ​

get blendColor(): boolean

Defined in: src/gfx/renderJob/post/GodRayPost.ts:66

Returns ​

boolean

Set Signature ​

set blendColor(value): void

Defined in: src/gfx/renderJob/post/GodRayPost.ts:69

Parameters ​
value ​

boolean

Returns ​

void


rayMarchCount ​

Get Signature ​

get rayMarchCount(): number

Defined in: src/gfx/renderJob/post/GodRayPost.ts:72

Returns ​

number

Set Signature ​

set rayMarchCount(value): void

Defined in: src/gfx/renderJob/post/GodRayPost.ts:75

Parameters ​
value ​

number

Returns ​

void


scatteringExponent ​

Get Signature ​

get scatteringExponent(): number

Defined in: src/gfx/renderJob/post/GodRayPost.ts:79

Returns ​

number

Set Signature ​

set scatteringExponent(value): void

Defined in: src/gfx/renderJob/post/GodRayPost.ts:82

Parameters ​
value ​

number

Returns ​

void


intensity ​

Get Signature ​

get intensity(): number

Defined in: src/gfx/renderJob/post/GodRayPost.ts:86

Returns ​

number

Set Signature ​

set intensity(value): void

Defined in: src/gfx/renderJob/post/GodRayPost.ts:89

Parameters ​
value ​

number

Returns ​

void

Methods ​

onResize() ​

onResize(): void

Defined in: src/gfx/renderJob/post/GodRayPost.ts:136

Returns ​

void

Overrides ​

PostBase.onResize


compute() ​

compute(view): void

Defined in: src/gfx/renderJob/post/PostBase.ts:133

Parameters ​

view ​

View3D

Returns ​

void

Inherited from ​

PostBase.compute


destroy() ​

destroy(force?): void

Defined in: src/gfx/renderJob/post/PostBase.ts:143

Parameters ​

force? ​

boolean

Returns ​

void

Inherited from ​

PostBase.destroy