[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/vob demo/multifil/fillet3d.py fillet/lig...
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob/vob demo/multifil/fillet3d.py fillet/lig... |
Date: |
Sat, 28 Jun 2003 09:42:37 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Tuomas J. Lukka <address@hidden> 03/06/28 09:42:37
Modified files:
vob/demo/multifil: fillet3d.py
vob/fillet : light3d.py
Log message:
twids
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/demo/multifil/fillet3d.py.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/fillet/light3d.py.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
Patches:
Index: libvob/vob/demo/multifil/fillet3d.py
diff -u libvob/vob/demo/multifil/fillet3d.py:1.8
libvob/vob/demo/multifil/fillet3d.py:1.9
--- libvob/vob/demo/multifil/fillet3d.py:1.8 Sat Jun 28 09:33:45 2003
+++ libvob/vob/demo/multifil/fillet3d.py Sat Jun 28 09:42:37 2003
@@ -41,6 +41,8 @@
self.depthTexture.setTexParameter("TEXTURE_2D",
"TEXTURE_MAX_LEVEL", 0)
self.depthTexture.setTexParameter("TEXTURE_2D",
+ "DEPTH_TEXTURE_MODE", "ALPHA")
+ self.depthTexture.setTexParameter("TEXTURE_2D",
"TEXTURE_BASE_LEVEL", 0)
self.depthTexture.setTexParameter("TEXTURE_2D",
"TEXTURE_MIN_FILTER", "NEAREST")
@@ -132,7 +134,7 @@
Enable BLEND
""" % light3d.edgefp.getProgId()))
- vs.put(quad(), vs.orthoCS(0, "A", -100, 0, 0, 1024,768))
+ vs.put(quad(), vs.orthoCS(0, "A", -100, 0, 0, 1024,1024))
vs.put(getDListNocoords("""
BindTexture TEXTURE_2D 0
Index: libvob/vob/fillet/light3d.py
diff -u libvob/vob/fillet/light3d.py:1.13 libvob/vob/fillet/light3d.py:1.14
--- libvob/vob/fillet/light3d.py:1.13 Sat Jun 28 09:33:45 2003
+++ libvob/vob/fillet/light3d.py Sat Jun 28 09:42:37 2003
@@ -66,9 +66,10 @@
// tc.y = tc.y + 1 - 768 / 1024.0;
float2 tc = qpos.xy;
tc.y = 1-tc.y;
- tc.y = tc.y * 768 / 1024;
- tc.y += (1-768/1024.0);
- float d = tex2D(tex0, tc).x;
+ // tc.y = tc.y * 768 / 1024;
+ // tc.y += (1-768/1024.0);
+
+ float d = tex2D(tex0, tc).w;
float d1 = tex2D(tex0, tc + float2(0,2/1024.0)).x;
float d2 = tex2D(tex0, tc + float2(0,-2/1024.0)).x;
float d3 = tex2D(tex0, tc + float2(2/1024.0,0)).x;