Daniel Salvadori 6 лет назад
Родитель
Сommit
4fba891551
2 измененных файлов с 0 добавлено и 16 удалено
  1. 0 8
      renderer/shaders/include/material.glsl
  2. 0 8
      renderer/shaders/sources.go

+ 0 - 8
renderer/shaders/include/material.glsl

@@ -35,11 +35,3 @@ uniform vec3 Material[6];
         return texMixed;
     }
 #endif
-
-// TODO for alpha blending dont use mix use implementation below (similar to one in panel shader)
-//vec4 prevTexPre = texMixed;
-//prevTexPre.rgb *= prevTexPre.a;
-//vec4 currTexPre = texColor;
-//currTexPre.rgb *= currTexPre.a;
-//texMixed = currTexPre + prevTexPre * (1 - currTexPre.a);
-//texMixed.rgb /= texMixed.a;

+ 0 - 8
renderer/shaders/sources.go

@@ -136,14 +136,6 @@ uniform vec3 Material[6];
         return texMixed;
     }
 #endif
-
-// TODO for alpha blending dont use mix use implementation below (similar to one in panel shader)
-//vec4 prevTexPre = texMixed;
-//prevTexPre.rgb *= prevTexPre.a;
-//vec4 currTexPre = texColor;
-//currTexPre.rgb *= currTexPre.a;
-//texMixed = currTexPre + prevTexPre * (1 - currTexPre.a);
-//texMixed.rgb /= texMixed.a;
 `
 
 const include_morphtarget_vertex_source = `#ifdef MORPHTARGETS