Triangle Gradient
By
IlluminatiBG
July 12, 2010
233 Downloads
1 votes
![]()
Fill shader that does gradient filling of three vertices (XY point) used in triangle. The shader get six parameter - three of type float2 for vertices coords and three of type float4 for vertices colors (colors are RGBA which means one or more vertex can be transparent). The shader also cares for additional alpha transparence of the edges of triangle so the sides of the triangle does no appear rough.
SUPPORT INFORMATION
If you encounter any bugs or problems mail to Illuminate1989@gmail.com
| License: | Freeware |
|---|---|
| Cost: | Free |
| Platform: | Flash Player 10 |
| File format: | ZIP | 2.8 KB |
Additional extension information
| Author: | IlluminatiBG |
|---|---|
| Author website: | Not available |
| Date published: | July 12, 2010 |
| Approval: | None |
| Compatible product(s): | Pixel Bender 1.0 |
Reviews
1-2 of 2 reviews | Show all reviews
chiYeung 03-Oct-10
I was not able to get this working well.
So Here is my implementation using a weight function as described last and another with a 3x3 matrix.
http://www.ctyeung.com/flex/TriangleGradient/TestDrawTriangles.html
chiYeung 15-Aug-10
Shouldn't the proportion of color mixture be distance of point to line ? rather than distance of point to point ?
