mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T71461: Add IN_PLACE_INSTANCES to part_prim and part_axis object mode particle shaders
For `Particle Properties -> Viewport Display -> Display As` set to circle/cross/axis, particle instances are associated with a single resource handle (and, in particular, a single model matrix), so define `IN_PLACE_INSTANCES` to get the right index for `ModelMatrix` and `ModelInverseMatrix` in the shader. Differential Revision: https://developer.blender.org/D6220
This commit is contained in:
parent
a97cc5389a
commit
8c9e6f123a
1 changed files with 2 additions and 1 deletions
|
|
@ -510,12 +510,13 @@ static void OBJECT_engine_init(void *vedata)
|
|||
NULL,
|
||||
datatoc_gpu_shader_flat_color_frag_glsl,
|
||||
datatoc_common_view_lib_glsl,
|
||||
NULL);
|
||||
"#define IN_PLACE_INSTANCES\n");
|
||||
|
||||
sh_data->part_axis = DRW_shader_create_with_lib(datatoc_object_particle_prim_vert_glsl,
|
||||
NULL,
|
||||
datatoc_gpu_shader_flat_color_frag_glsl,
|
||||
datatoc_common_view_lib_glsl,
|
||||
"#define IN_PLACE_INSTANCES\n"
|
||||
"#define USE_AXIS\n");
|
||||
|
||||
sh_data->part_dot = DRW_shader_create_with_lib(datatoc_object_particle_dot_vert_glsl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue