[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx demo/irregular2.py libtexture/sawnoise....
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx demo/irregular2.py libtexture/sawnoise.... |
Date: |
Wed, 18 Sep 2002 04:15:23 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/09/18 04:15:23
Modified files:
gfx/demo : irregular2.py
gfx/libtexture : sawnoise.texture
Log message:
Try to make sharper irregularities
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/irregular2.py.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libtexture/sawnoise.texture.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/irregular2.py
diff -c gzz/gfx/demo/irregular2.py:1.12 gzz/gfx/demo/irregular2.py:1.13
*** gzz/gfx/demo/irregular2.py:1.12 Wed Sep 18 02:41:35 2002
--- gzz/gfx/demo/irregular2.py Wed Sep 18 04:15:23 2002
***************
*** 4,11 ****
tex = GZZGL.createTexture()
tex.shade(128, 128, 0, 4, "RGBA", "RGBA",
"sawnoise", ["bias", "0.5",
! "scale", "0.2", "freq", "1", "df", "2",
! "scale2", "0.05", "freq2", "12", "df2", "1.5"])
boxtex = GZZGL.createTexture()
--- 4,13 ----
tex = GZZGL.createTexture()
tex.shade(128, 128, 0, 4, "RGBA", "RGBA",
"sawnoise", ["bias", "0.5",
! "scale", "0.15", "freq", "1", "df", "2",
! "scale2", "0.25", "freq2", "10", "df2", ".5"])
! # "scale", "0.2", "freq", "1", "df", "2",
! # "scale2", "0.05", "freq2", "12", "df2", "1.5"])
boxtex = GZZGL.createTexture()
Index: gzz/gfx/libtexture/sawnoise.texture
diff -c gzz/gfx/libtexture/sawnoise.texture:1.2
gzz/gfx/libtexture/sawnoise.texture:1.3
*** gzz/gfx/libtexture/sawnoise.texture:1.2 Tue Sep 17 03:35:55 2002
--- gzz/gfx/libtexture/sawnoise.texture Wed Sep 18 04:15:23 2002
***************
*** 11,17 ****
}
float saw_sin(float x) {
! return asin(sin(x))/M_PI_2;
}
float saw_cos(float x) {
return saw_sin(x + M_PI_2);
--- 11,18 ----
}
float saw_sin(float x) {
! float t = asin(sin(x))/M_PI_2;
! return t*t*t;
}
float saw_cos(float x) {
return saw_sin(x + M_PI_2);