Patent ID: 8179399

Claim:
A rasterizing method, comprising: calculating, using a graphics processor, an attribute (C) of a pixel having coordinates (X, Y), based on coordinates (X 0 , Y 0 ), (X 1 , Y 1 ), (X 2 , Y 2 ) of vertices of a primitive in a screen space, Z coordinates Z 0 , Z 1 and Z 2 of said vertices in a three-dimensional space, and attributes C 0 , C 1 , C 2 of said vertices, the calculating including: defining a vertex (X 0 , Y 0 ) as reference, finding H coefficients H 0 =(Δ X 20 ΔY 10 −ΔY 20 ΔX 10 ) Z 1 Z 2 C 0 H 1 =−ΔY 20 ( Z 0 Z 2 C 1 −Z 1 Z 2 C 0 )+Δ Y 10 ( Z 0 Z 1 C 2 −Z 1 Z 2 C 0 ) H 2 =ΔX 20 ( Z 0 Z 2 C 1 −Z 1 Z 2 C 0 )−Δ X 10 ( Z 0 Z 1 C 2 −Z 1 Z 2 C 0 ) H 3 =(Δ X 20 ΔY 10 −ΔY 20 ΔX 10 ) Z 1 Z 2 H 4 =−ΔY 20 ( Z 0 Z 2 −Z 1 Z 2 )+Δ Y 10 ( Z 0 Z 1 −Z 1 Z 2 ) H 5 =ΔX 20 ( Z 0 Z 2 −Z 1 Z 2 ) −ΔX 10 ( Z 0 Z 1 −Z 1 Z 2 ) using the graphics processor, wherein ΔX ij =X i −X j and ΔY ij =Y i −Y j , calculating attribute C using the formula: C = H 0 + H 1 ⁢ Δ ⁢ ⁢ x + H 2 ⁢ Δ ⁢ ⁢ y H 3 + H 4 ⁢ Δ ⁢ ⁢ x + H 5 ⁢ Δ ⁢ ⁢ y wherein Δx=X−X 0 and Δy=Y−Y 0 .