Permalink
Browse files

testsuite/texture-smallderivs

  • Loading branch information...
1 parent 9c2a303 commit 5a361c234f7194cb7452c1bd686555a540cfbe27 @lgritz lgritz committed Mar 13, 2012
View
@@ -206,6 +206,7 @@ TESTSUITE ( arithmetic array array-derivs array-range
struct-within-struct ternary
texture-alpha texture-blur texture-field3d
texture-firstchannel texture-interp texture-simple
+ texture-smallderivs
texture-width texture-withderivs texture-wrap
transform transformc trig typecast vecctr vector
wavelength_color xml )
Binary file not shown.
@@ -0,0 +1,3 @@
+Compiled test.osl -> test.oso
+
+Output Cout to out.tif
@@ -0,0 +1,4 @@
+#!/usr/bin/python
+
+command += testshade("-g 256 256 --center -od uint8 -o Cout out.tif test")
+outputs = [ "out.txt", "out.tif" ]
@@ -0,0 +1,13 @@
+// This test combines a small blur, with derivatives rigged to cross
+// over the threshold where internal to OIIO it recognizes them as
+// essentially zero and sets up some special cases to handle it.
+
+shader
+test (string filename = "../common/textures/mandrill.tif",
+ output color Cout = 0)
+{
+ float uwidth = u * 2e-8;
+ float vwidth = v * 2e-8;
+ Cout = (color) texture (filename, u, v, uwidth, 0, 0, vwidth, "blur", 0.01);
+}
+

0 comments on commit 5a361c2

Please sign in to comment.