From 02b35b409b75b41600b57ba647e2075cd5018199 Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Mon, 26 Aug 2024 15:52:28 -0400 Subject: [PATCH] debug --- .../shaders/spatial_material.shaderbundle | Bin 203512 -> 203272 bytes .../flame_3d/shaders/spatial_material.frag | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flame_3d/assets/shaders/spatial_material.shaderbundle b/packages/flame_3d/assets/shaders/spatial_material.shaderbundle index 8c0804edc12ec9c1bc9e053e37d752781b2815e7..88ce604eb2ba0d0aa6a74e86a937f1d1ec5a47d8 100644 GIT binary patch delta 7432 zcmeHKYjjlA6+ZVSfg}V%GRaH`WVnGOP9(|PdE7fmk+Eo1hz1g*v@QxGm;_RJ*3@FF zjx4RRTuOms!PZBkRhEiDAmFP@9u{5NE?vHAf9PV_{%~1~kG89dtvda_bLZ$Jpi+PN zgGtUk`+R$!z4v+CZ}uG9SF&Mm$tJ7gmgPd^3n8xCmdSKOzGQ>3odmV@yMhEg*(QOz+S|khu!#^a6V2<`Q3e84#UvFJz{oEq;hG zm*^dgx5P_x?5U@{KHMuY=Dy`-mDQ;q=x&4jUb=mSP$>hx~-A@eqISF~LfWICfx z+ton+EBx^Y^x~#M=Hj?0>ao*l#RQ$$5N=ZgKpN@Bvm|~RFb1KX0f@CgW`cF_$ND!mEg zU!d(l;F%x*GRzi?7okx%7Hu|~W*P~Z`n~YC0R1g!#JC$Dg8a8a=I1|nA*lN$8nI)- zRI-loD`1F`{wxT;S9FkHL#BZaavNk~4Dt~iX@~6pjieW#za5PMFF>O`12dsJ(euNE zXmbY|F(!0}ft#x{x(i_Lss}LE3Ed5udY#a3ArsRHX@~4}Lia#sKqg6h24+Ir(d&fn z;kn<7Mvxg%)(PDQStTTma$ov>jELwI9)L_tr=UHs*D36P%rux5?dhE<45HU5(B?rj zV$6WD&fp=)*)2(nS1}{^kaj^y1D()r$i#F)+97+L&>qMP$RugcU`%K)dYuq$hR}#H zA<8pF+Pj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^8 zmKJk?j&ui1{vSYS-RD6l*N<;1el5tA5v_qjQXLmdqkFCZDf)&apf2sT!MDX16i8de zvcwX-Q5;Ofj87&II`!K`aZONPC$6iB8Rn}JI0LUp;M}xI0%!ds37oIJLf{0V?X3+O ze=R3&4*ucqy}nOhD(a@jj2(W7oM$VD{fQ}K_PW!bU=y!Ap0SSjwFHL_0&xMG$q!e7pxM6gS14L+mss{;g2U!E__ zhOEzM`T)3F8i>~D^2!MU>snW)H+t1d5hhFk5<9Lpu^(F+3dP9T#h3>!)HU_J|C+WLtKrNdoYOcLwRKh#3w7#wEv->utnr4@V zqi%QS_7MZ>;F5EkJ{_E8S?Mtb)XD8w>GbL3EK4<>vY#1HLzlZM(x;)bB2Ic81L^BT zCt?tyR6iH?HqG6R$UyqK+|`jjeVt{8(#sf7d)K+z`JDDnbf9DVZ~D7OMyTGd2zZe# zewGg$IwwZ1b&S_)Wpg(#E}OghxNPn|I41%N0>+SY#3+4%*t;NT6x2zG>N+P*t(%sC zFk;mDDR^CoQ5wYO#gT9Hr-mR#YAoZ`mvAq)q78T~d0f4&U3PABUsCy&$Q`&>m ni!Bv@d|m;l{y!|Q02F^+e}MsN`^h!mKDkCeadM3@_t<{`Q diff --git a/packages/flame_3d/shaders/spatial_material.frag b/packages/flame_3d/shaders/spatial_material.frag index 80e9eca360..c4b395feea 100644 --- a/packages/flame_3d/shaders/spatial_material.frag +++ b/packages/flame_3d/shaders/spatial_material.frag @@ -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); }