Skip to content

Commit b8762ec

Browse files
committed
debug
1 parent 38059aa commit b8762ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Binary file not shown.

packages/flame_3d/shaders/spatial_material.frag

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ void main() {
145145
color = color / (color + vec3(1.0));
146146
color = pow(color, vec3(1.0 / 2.2));
147147

148-
int idx = int(lightsInfo.numLights) - 3;
148+
int idx = int(lightsInfo.numLights) - 2;
149149
if (lights[idx].position.x == 0 && lights[idx].position.y == 0 && lights[idx].position.z == 0 && lights[idx].color.r == 0 && lights[idx].color.g == 0 && lights[idx].color.b == 0 && lights[idx].intensity.x == 0) {
150-
outColor = vec4(0.04, 0.0, 0.02, 1.0);
150+
outColor = vec4(1, 0, 1, 1);
151151
} else {
152152
outColor = vec4(color, 1.0);
153153
}

0 commit comments

Comments
 (0)