FullScreenEffect¶
类位于 Infernux.renderstack
继承自: RenderPass
描述¶
全屏后处理效果基类。自定义后处理从这里继承。
description
构造函数¶
| 签名 | 描述 |
|---|---|
FullScreenEffect.__init__(enabled: bool = ...) → None |
constructors
属性¶
| 名称 | 类型 | 描述 |
|---|---|---|
| requires | Set[str] |
(只读) |
| modifies | Set[str] |
(只读) |
| menu_path | str |
(只读) |
properties
公共方法¶
| 方法 | 描述 |
|---|---|
setup_passes(graph: RenderGraph, bus: ResourceBus) → None |
Override to add fullscreen passes to the render graph. |
get_shader_list() → List[str] |
Return shader paths required by this effect. |
inject(graph: RenderGraph, bus: ResourceBus) → None |
Inject this effect into the render graph. |
get_params_dict() → Dict[str, Any] |
Get serializable parameters as a dictionary. |
set_params_dict(params: Dict[str, Any]) → None |
Restore parameters from a dictionary. |
apply_single_source_effect(graph: RenderGraph, bus: ResourceBus, output_name: str, pass_name: str, shader_name: str, format: Any, params: Mapping[str, object] | None = ...) → bool |
Apply a one-pass fullscreen effect that rewrites the scene color. |
public_methods
静态方法¶
| 方法 | 描述 |
|---|---|
static FullScreenEffect.get_or_create_texture(graph: RenderGraph, name: str, format: Any = ..., camera_target: bool = ..., size: Any = ..., size_divisor: int = ...) → Any |
Get or create a named texture handle in the render graph. |
static_methods
运算符¶
| 方法 | 返回值 |
|---|---|
__repr__() → str |
str |
operators
示例¶
example
另请参阅¶
see_also