Skip to content

Commit 401fcb3

Browse files
committed
Give all GLSL input struct names, necessary for Intel driver bug
Fixes panda3d/panda3d#1524
1 parent bf7bc39 commit 401fcb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programming/shaders/list-of-glsl-inputs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ any shader stage.
141141
142142
// Access the material attributes assigned via a Material object.
143143
// Unused struct parameters may be omitted without consequence.
144-
uniform struct {
144+
uniform struct p3d_MaterialParameters {
145145
vec4 ambient;
146146
vec4 diffuse;
147147
vec4 emission;
@@ -156,7 +156,7 @@ any shader stage.
156156
} p3d_Material;
157157
158158
// The sum of all active ambient light colors.
159-
uniform struct {
159+
uniform struct p3d_LightModelParameters {
160160
vec4 ambient;
161161
} p3d_LightModel;
162162

0 commit comments

Comments
 (0)