← Back to vivid-3d

Render3D

GPU Gpu

Renders 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

NameTypeDescription
cam_xfloatCamera X position.
cam_yfloatCamera Y position.
cam_zfloatCamera Z position.
target_xfloat
target_yfloat
target_zfloat
fovfloatCamera field of view.
nearfloat
farfloat
bg_rfloat
bg_gfloat
bg_bfloat
bg_afloat
shadow_enabledfloatEnables shadow rendering.
shadow_resolutionfloat
shadow_biasfloat
fog_enabledfloatEnables fog in the final scene render.
fog_modeint
fog_color_rfloat
fog_color_gfloat
fog_color_bfloat
fog_nearfloat
fog_farfloat
fog_densityfloat

Ports

NameDirectionType
textureOutputTEXTURE
depthOutputTEXTURE