Readonly
blendThe blend mode of this effect.
Readonly
definesPreprocessor macro definitions.
Call setChanged after changing macro definitions.
Readonly
extensionsWebGL extensions that are required by this effect.
Call setChanged after adding or removing extensions.
The name of this effect.
Protected
rendererThe renderer.
Readonly
uniformsShader uniforms.
Call setChanged after adding or removing uniforms.
设置散射光的颜色。
ScreenSpaceFogEffect
设置散射光束的聚焦指数。
控制光束的锐利程度。值越大,光束越集中、越锐利。
ScreenSpaceFogEffect
设置散射光束开始计算的距离。
ScreenSpaceFogEffect
设置雾气的颜色
ScreenSpaceFogEffect
设置雾气的基础密度。
ScreenSpaceFogEffect
设置雾气层的基准高度。
ScreenSpaceFogEffect
设置雾气的高度衰减系数。
控制雾气密度随 Y 轴升高而衰减的速度。值越大,雾层越薄,边界越清晰。通常在 0.05 到 1.0 之间。0.05 适合厚厚的、缓慢过渡的大气,0.5 适合贴地面的薄雾。
ScreenSpaceFogEffect
设置雾气的最大不透明度。
ScreenSpaceFogEffect
设置雾效开始计算的距离。
ScreenSpaceFogEffect
Experimental
The input color space.
Protected
Experimental
设置定向光的反向方向向量,必须归一化 (normalize)。
ScreenSpaceFogEffect
设置主相机
ScreenSpaceFogEffect
设置主场景
ScreenSpaceFogEffect
设置噪声在世界空间中的频率。
控制雾气团块的大小。值越小,团块越大越平缓;值越大,团块越小越密集。大型云海推荐 0.005 到 0.05。地面团状雾推荐 0.05 到 0.15。
ScreenSpaceFogEffect
设置雾气扰动在世界空间 X 轴和 Z 轴上的流动速度。
ScreenSpaceFogEffect
设置噪声对雾气基准高度的最大扰动幅度。
控制雾气基准面上下波动的最大高度(米)。通常设置为一个世界高度值,如 5.0 (轻微波动) 到 50.0 (明显起伏)。这个值决定了雾气团块的垂直对比度。
ScreenSpaceFogEffect
Experimental
The output color space.
Should only be changed if this effect converts the input colors to a different color space.
Protected
Experimental
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
The event that gets fired.
Performs a shallow search for properties that define a dispose method and deletes them.
The EffectComposer calls this method when it is being destroyed.
Returns the effect attributes.
The attributes.
Returns the WebGL extensions that are required by this effect.
The extensions.
Use extensions instead.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Protected
setProtected
Sets the effect attributes.
Effects that have the same attributes will be executed in the order in which they were registered. Some attributes imply a higher priority.
The attributes.
Protected
setProtected
Informs the associated EffectPass that this effect requires a shader recompilation.
Should be called after changing macros or extensions and after adding/removing uniforms.
Sets the depth texture.
You may override this method if your effect requires direct access to the depth texture that is bound to the associated EffectPass.
A depth texture.
Optional
depthPacking: DepthPackingStrategiesThe depth packing.
Protected
setProtected
set
屏幕空间雾后处理效果(移植自Fantasy3D)
Export
Date
2025.10.18
Author
lyx