missing some file

This commit is contained in:
Anis A. Hireche 2014-11-27 11:45:32 +01:00 committed by LuisAntonRebollo
parent 09b6a06bbc
commit 18213a7fa9
12 changed files with 562 additions and 38 deletions

View file

@ -32,10 +32,12 @@ float calcBlend( float texId, vec2 layerCoord, float layerSize, vec4 layerSample
vec4 diff = clamp( abs( layerSample - texId ), 0.0, 1.0 );
float noBlend = float(any( bvec4(1 - diff) ));
// Use step to see if any of the layer samples
// match the current texture id.
vec4 factors = step( texId, layerSample );
vec4 factors = vec4(0);
for(int i = 0; i < 4; i++)
if(layerSample[i] == texId)
factors[i] = 1;
// This is a custom bilinear filter.
vec2 uv = layerCoord * layerSize;