Progetto H — Riferimento API Documentazione & Scripting
Costruttore Condiviso

SceneCapture.Default Constructor

Sintassi

Lua
SceneCapture(location = Vector(0, 0, 0), rotation = Rotator(0, 0, 0), width = 128, height = 128, render_rate = 0.033, view_distance = 5000, fov_angle = 90, enable_distance_optimization = true)

Parametri

Nome Tipo Predefinito Descrizione
location facoltativo Vector Vector(0, 0, 0) Location
rotation facoltativo Rotator Rotator(0, 0, 0) Rotation
width facoltativo integer 128 Width of the generated Texture (max is 4096)
height facoltativo integer 128 Height of the generated Texture (max is 4096)
render_rate facoltativo float 0.033 Render Rate (how frequent is the capture) - pass it -1 to disable auto-rendering, 0 to capture every frame
view_distance facoltativo float 5000 Maximum distance of capturing
fov_angle facoltativo float 90 FOV
enable_distance_optimization facoltativo boolean true Reduces the rendering frequency if the entities with this Material are too far or not visible. Disable it to always render at the render_rate