Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-10-07 01:06:27 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-10-07 13:43:10 +0300
commita945cf4d0fc38f3c84747767612ad1d748ceb2a0 (patch)
tree72aa5ff66b79168506cb9542d0144d42c10dd1d4 /source/blender/draw/intern/draw_view.cc
parent223f970407666828922616f1646768433ab7e7a0 (diff)
DRW: Move clipping planes to their own UBO
This is part of the effor to simplify the View struct in order to implement multiview rendering.
Diffstat (limited to 'source/blender/draw/intern/draw_view.cc')
-rw-r--r--source/blender/draw/intern/draw_view.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/draw/intern/draw_view.cc b/source/blender/draw/intern/draw_view.cc
index 3475b11be89..aa32549de56 100644
--- a/source/blender/draw/intern/draw_view.cc
+++ b/source/blender/draw/intern/draw_view.cc
@@ -203,15 +203,6 @@ void View::frustum_culling_sphere_calc(const BoundBox &bbox, BoundSphere &bspher
}
}
-void View::set_clip_planes(Span<float4> planes)
-{
- BLI_assert(planes.size() <= ARRAY_SIZE(data_.clip_planes));
- int i = 0;
- for (const auto &plane : planes) {
- data_.clip_planes[i++] = plane;
- }
-}
-
void View::update_viewport_size()
{
float4 viewport;