[update] Replaced dummy variables with alignment specifications.
This commit is contained in:
parent
87b4d5af07
commit
3a9669df38
@ -14,23 +14,18 @@ class CubeProgram {
|
|||||||
static struct Material {
|
static struct Material {
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
vec3 diffuse_color = vec3(1, 1, 1);
|
align(16) vec3 diffuse_color = vec3(1, 1, 1);
|
||||||
private float padding0_;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
vec3 specular_color = vec3(1, 1, 1);
|
align(16) vec3 specular_color = vec3(1, 1, 1);
|
||||||
private float padding1_;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
vec3 light_color = vec3(1, 1, 1);
|
align(16) vec3 light_color = vec3(1, 1, 1);
|
||||||
private float padding2_;
|
|
||||||
///
|
///
|
||||||
vec3 light_power = vec3(20, 20, 20);
|
align(16) vec3 light_power = vec3(20, 20, 20);
|
||||||
private float padding3_;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
vec3 ambient_color = vec3(0.3, 0.3, 0.3);
|
align(16) vec3 ambient_color = vec3(0.3, 0.3, 0.3);
|
||||||
private float padding4_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user