diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-10-12 21:24:03 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 12:03:54 +0100 |
commit | 76c6f39d99b82a07bc4f88ec4b6fb13b532be725 (patch) | |
tree | 2aa9a343eab2ac6b29e72e56d5efd48af4904a42 /servers/visual/rasterizer.h | |
parent | 561b431d85314000fe70d42e39713e5da394c3b5 (diff) |
GIProbe now generates a distance field on bake using CPU, for better compatibility
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r-- | servers/visual/rasterizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 5a39a6dbfd..51acd3a797 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -488,12 +488,14 @@ public: virtual RID gi_probe_create() = 0; - virtual void gi_probe_allocate(RID p_gi_probe, const Transform &p_to_cell_xform, const AABB &p_aabb, const Vector3i &p_octree_size, const PoolVector<uint8_t> &p_octree_cells, const PoolVector<uint8_t> &p_data_cells, const PoolVector<int> &p_level_counts) = 0; + virtual void gi_probe_allocate(RID p_gi_probe, const Transform &p_to_cell_xform, const AABB &p_aabb, const Vector3i &p_octree_size, const PoolVector<uint8_t> &p_octree_cells, const PoolVector<uint8_t> &p_data_cells, const PoolVector<uint8_t> &p_distance_field, const PoolVector<int> &p_level_counts) = 0; virtual AABB gi_probe_get_bounds(RID p_gi_probe) const = 0; virtual Vector3i gi_probe_get_octree_size(RID p_gi_probe) const = 0; virtual PoolVector<uint8_t> gi_probe_get_octree_cells(RID p_gi_probe) const = 0; virtual PoolVector<uint8_t> gi_probe_get_data_cells(RID p_gi_probe) const = 0; + virtual PoolVector<uint8_t> gi_probe_get_distance_field(RID p_gi_probe) const = 0; + virtual PoolVector<int> gi_probe_get_level_counts(RID p_gi_probe) const = 0; virtual Transform gi_probe_get_to_cell_xform(RID p_gi_probe) const = 0; |