Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Sep 13, 2024
1 parent 022be5f commit 02b35b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified packages/flame_3d/assets/shaders/spatial_material.shaderbundle
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/flame_3d/shaders/spatial_material.frag
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ void main() {
color = color / (color + vec3(1.0));
color = pow(color, vec3(1.0 / 2.2));

int idx = int(lightsInfo.numLights) - 3;
int idx = int(lightsInfo.numLights) - 2;
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) {
outColor = vec4(0.04, 0.0, 0.02, 1.0);
outColor = vec4(1, 0, 1, 1);
} else {
outColor = vec4(color, 1.0);
}
Expand Down

0 comments on commit 02b35b4

Please sign in to comment.