diff options
Diffstat (limited to 'source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh b/source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh index 1db98d13c4a..da2776254e6 100644 --- a/source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh +++ b/source/blender/draw/engines/gpencil/shaders/infos/gpencil_info.hh @@ -22,12 +22,13 @@ GPU_SHADER_CREATE_INFO(gpencil_geometry) .do_static_compilation(true) .define("GP_LIGHT") .typedef_source("gpencil_defines.h") - .sampler(0, ImageType::FLOAT_2D, "gpFillTexture") - .sampler(1, ImageType::FLOAT_2D, "gpStrokeTexture") - .sampler(2, ImageType::DEPTH_2D, "gpSceneDepthTexture") - .sampler(3, ImageType::FLOAT_2D, "gpMaskTexture") - .uniform_buf(2, "gpMaterial", "materials[GPENCIL_MATERIAL_BUFFER_LEN]", Frequency::BATCH) + .sampler(2, ImageType::FLOAT_2D, "gpFillTexture") + .sampler(3, ImageType::FLOAT_2D, "gpStrokeTexture") + .sampler(4, ImageType::DEPTH_2D, "gpSceneDepthTexture") + .sampler(5, ImageType::FLOAT_2D, "gpMaskTexture") + .uniform_buf(4, "gpMaterial", "materials[GPENCIL_MATERIAL_BUFFER_LEN]", Frequency::BATCH) .uniform_buf(3, "gpLight", "lights[GPENCIL_LIGHT_BUFFER_LEN]", Frequency::BATCH) + .push_constant(Type::VEC2, "viewportSize") /* Per Object */ .push_constant(Type::VEC3, "gpNormal") .push_constant(Type::BOOL, "gpStrokeOrder3d") @@ -47,7 +48,7 @@ GPU_SHADER_CREATE_INFO(gpencil_geometry) /** \} */ /* -------------------------------------------------------------------- */ -/** \name Fullscreen shaders +/** \name Full-Screen Shaders * \{ */ GPU_SHADER_CREATE_INFO(gpencil_layer_blend) |