[opengtl-commits] [750] use setAlpha |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 750
Author: cyrille
Date: 2009-05-29 19:48:48 +0200 (Fri, 29 May 2009)
Log Message:
-----------
use setAlpha
Modified Paths:
--------------
trunk/shiva-collections/filters/Droste.shiva
trunk/shiva-collections/filters/MirrorImpose.shiva
trunk/shiva-collections/filters/Mosaic.shiva
trunk/shiva-collections/filters/Sea.shiva
trunk/shiva-collections/filters/StereographicProjection.shiva
trunk/shiva-collections/generators/CheckerBoard.shiva
trunk/shiva-collections/generators/MandelbrotSet.shiva
Modified: trunk/shiva-collections/filters/Droste.shiva
===================================================================
--- trunk/shiva-collections/filters/Droste.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/filters/Droste.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -456,7 +456,6 @@
}
result = colorSoFar;
- result[3] = 1.0;
}
region changed(region changed_input_region, int input_index, region input_DOD[])
{
Modified: trunk/shiva-collections/filters/MirrorImpose.shiva
===================================================================
--- trunk/shiva-collections/filters/MirrorImpose.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/filters/MirrorImpose.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -15,7 +15,6 @@
float y2 = min(1, ay + (1 - ax));
float weight = clamp(1 - (ax - x1) / (x2 - x1), 0, 1);
result = mix(img.sampleNearest( result.coord ), img.sampleNearest( imsize - result.coord ), weight);
- result[3] = 1.0;
}
region changed(region changed_input_region, int input_index, region input_DOD[])
{
Modified: trunk/shiva-collections/filters/Mosaic.shiva
===================================================================
--- trunk/shiva-collections/filters/Mosaic.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/filters/Mosaic.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -20,7 +20,6 @@
{
float2 vec = result.coord - fmod2( result.coord + imsize, cellsize );
result = img.sampleNearest( vec );
- result[3] = 1.0;
}
region changed(region changed_input_region, int input_index, region input_DOD[])
{
Modified: trunk/shiva-collections/filters/Sea.shiva
===================================================================
--- trunk/shiva-collections/filters/Sea.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/filters/Sea.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -37,7 +37,6 @@
float s = sin(q + wv * IMAGE_HEIGHT / ( IMAGE_HEIGHT - result.coord.y + 0.1) );
float2 displacement = float2( s * amp1, s * amp2);
result = img.sampleNearest( result.coord + displacement );
- result[3] = 1.0;
}
region changed(region changed_input_region, int input_index, region input_DOD[])
{
Modified: trunk/shiva-collections/filters/StereographicProjection.shiva
===================================================================
--- trunk/shiva-collections/filters/StereographicProjection.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/filters/StereographicProjection.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -107,7 +107,6 @@
float2 pos = center + float2(nx, ny * zeta );
result = img.sampleNearest( pos );
}
- result[3] = 1.0;
}
region changed(region changed_input_region, int input_index, region input_DOD[])
{
Modified: trunk/shiva-collections/generators/CheckerBoard.shiva
===================================================================
--- trunk/shiva-collections/generators/CheckerBoard.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/generators/CheckerBoard.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -37,7 +37,6 @@
} else {
r = color2;
}
- r.a = 1.0;
result = r;
}
}
Modified: trunk/shiva-collections/generators/MandelbrotSet.shiva
===================================================================
--- trunk/shiva-collections/generators/MandelbrotSet.shiva 2009-05-29 17:48:09 UTC (rev 749)
+++ trunk/shiva-collections/generators/MandelbrotSet.shiva 2009-05-29 17:48:48 UTC (rev 750)
@@ -43,5 +43,6 @@
result[1] = 0.0;
result[2] = 0.0;
}
+ result.setAlpha(1.0);
}
}