Render3D
GPU GpuRenders a composed 3D scene into a texture with camera, lighting, and post controls.
Render3D is the main scene renderer for vivid-3d. It consumes scene data, applies camera and environment settings, and produces the final 3D image plus depth-aware effects like fog.
Parameters
| Name | Type | Description |
|---|---|---|
| cam_x | float | Camera X position. |
| cam_y | float | Camera Y position. |
| cam_z | float | Camera Z position. |
| target_x | float | — |
| target_y | float | — |
| target_z | float | — |
| fov | float | Camera field of view. |
| near | float | — |
| far | float | — |
| bg_r | float | — |
| bg_g | float | — |
| bg_b | float | — |
| bg_a | float | — |
| shadow_enabled | float | Enables shadow rendering. |
| shadow_resolution | float | — |
| shadow_bias | float | — |
| fog_enabled | float | Enables fog in the final scene render. |
| fog_mode | int | — |
| fog_color_r | float | — |
| fog_color_g | float | — |
| fog_color_b | float | — |
| fog_near | float | — |
| fog_far | float | — |
| fog_density | float | — |
Ports
| Name | Direction | Type |
|---|---|---|
| texture | Output | TEXTURE |
| depth | Output | TEXTURE |