mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
OpenSubdiv: Fix broken structure alignment when using color material
This commit is contained in:
parent
d8de018398
commit
c883946441
2 changed files with 3 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ struct LightSource {
|
|||
float spotCutoff;
|
||||
float spotExponent;
|
||||
float spotCosCutoff;
|
||||
float pad, pad2;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ using OpenSubdiv::Osd::GLMeshInterface;
|
|||
extern "C" char datatoc_gpu_shader_opensubd_display_glsl[];
|
||||
|
||||
#define MAX_LIGHTS 8
|
||||
|
||||
typedef struct Light {
|
||||
float position[4];
|
||||
float ambient[4];
|
||||
|
|
@ -60,6 +61,7 @@ typedef struct Light {
|
|||
float spot_cutoff;
|
||||
float spot_exponent;
|
||||
float spot_cos_cutoff;
|
||||
float pad, pad2;
|
||||
#endif
|
||||
} Light;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue