diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-07 13:13:47 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-07 13:43:10 +0300 |
commit | f8384485fcd80aefbb0c2806639f14b1d2cb7a5c (patch) | |
tree | 459aa208d64d631938846392eb8d4f45ee6f7e2f | |
parent | 7b9ce3af98a6690eaba0909f39a3ff1272dd5155 (diff) |
EEVEE-Next: Use global viewport size instead of DRWView one
This is part of the effor to simplify the View struct in order to implement
multiview rendering.
-rw-r--r-- | source/blender/draw/engines/eevee_next/shaders/eevee_geom_gpencil_vert.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_geom_gpencil_vert.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_geom_gpencil_vert.glsl index c60527162f7..38debf14eda 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_geom_gpencil_vert.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_geom_gpencil_vert.glsl @@ -29,7 +29,8 @@ void main() col1, col2, fcol1, - vec4(drw_view.viewport_size, drw_view.viewport_size_inverse), + /* TODO */ + vec4(1024.0, 1024.0, 1.0 / 1024.0, 1.0 / 1024.0), interp.P, interp.N, g_color, |