Skip to content

Commit

Permalink
PYMOL-4640: Fix for ANGLE error
Browse files Browse the repository at this point in the history
  • Loading branch information
TstewDev authored and JarrettSJohnson committed Jan 30, 2024
1 parent 05c920b commit 6755a18
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions data/shaders/compute_color_for_light.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ uniform float spec_value_0;
#ifdef precomputed_lighting
uniform samplerCube lightingTex;
#else
uniform struct {
struct LightSource{
vec4 ambient;
vec4 diffuse;
vec4 specular;
vec4 position;
} g_LightSource[8];
};

uniform struct {
uniform LightSource g_LightSource[8];

struct LightModel {
vec4 ambient;
} g_LightModel;
};

uniform LightModel g_LightModel;
#endif

#ifdef ray_transparency_oblique
Expand Down

0 comments on commit 6755a18

Please sign in to comment.