gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] fenfire/org/fenfire/util pagespanpaper.py


From: Janne V. Kujala
Subject: [Gzz-commits] fenfire/org/fenfire/util pagespanpaper.py
Date: Mon, 28 Apr 2003 09:21:18 -0400

CVSROOT:        /cvsroot/fenfire
Module name:    fenfire
Changes by:     Janne V. Kujala <address@hidden>        03/04/28 09:21:18

Modified files:
        org/fenfire/util: pagespanpaper.py 

Log message:
        Document the blurring fp

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/util/pagespanpaper.py.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: fenfire/org/fenfire/util/pagespanpaper.py
diff -u fenfire/org/fenfire/util/pagespanpaper.py:1.4 
fenfire/org/fenfire/util/pagespanpaper.py:1.5
--- fenfire/org/fenfire/util/pagespanpaper.py:1.4       Mon Apr 28 09:12:09 2003
+++ fenfire/org/fenfire/util/pagespanpaper.py   Mon Apr 28 09:21:18 2003
@@ -100,11 +100,14 @@
 
 if GL.hasExtension("GL_ARB_fragment_program"):
     PageSpanPaper.fpDualBlur = GL.createProgram("""!!ARBfp1.0
+    # Computes color = tex0 * tex1 with
+    # tex0 blurred near non-white parts of tex1.
 
     TEMP coord1;
     MOV coord1, fragment.texcoord[1];
     MOV coord1.w, 4.0;
 
+    # Filter the 'text' texture with and without blurring
     TEMP tex1, tex1b;
     TEX tex1, coord1, texture[1], 2D;
     TXB tex1b, coord1, texture[1], 2D;
@@ -112,9 +115,13 @@
     TEMP coord0;
     MOV coord0, fragment.texcoord[0];
 
-    # Get intensity, invert, and multiply by a big number
+    # Map blurred 'text' texture intensity to background LOD bias
+    # as follows:
+    #   1 -> no bias
+    #   0 -> large bias
     DP4 coord0.w, {-100,-100,-100,300}, tex1b;
 
+    # Filter background texture with the proper LOD bias
     TEMP tex0;
     TXB tex0, coord0, texture[0], 2D;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]