diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 13:02:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 13:02:05 +0300 |
commit | 671827549a3d013a2037e0b9814708214c59271c (patch) | |
tree | 7f15acb0cfbc4a5ad6b49cd072d9c7564f8df95b /source/blender/draw/modes/shaders | |
parent | 8cc1154aa257f1cc7fe6c5e0d139cdc0afd6b604 (diff) |
3D View: Support light probe data clipping
Diffstat (limited to 'source/blender/draw/modes/shaders')
-rw-r--r-- | source/blender/draw/modes/shaders/object_lightprobe_grid_vert.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/object_lightprobe_grid_vert.glsl b/source/blender/draw/modes/shaders/object_lightprobe_grid_vert.glsl index 61da94dd433..d27d55c3fd6 100644 --- a/source/blender/draw/modes/shaders/object_lightprobe_grid_vert.glsl +++ b/source/blender/draw/modes/shaders/object_lightprobe_grid_vert.glsl @@ -30,4 +30,8 @@ void main() gl_PointSize = 2.0f; finalId = uint(baseId + call_id); + +#ifdef USE_WORLD_CLIP_PLANES + world_clip_planes_calc_clip_distance(ws_cell_location); +#endif } |