[gegl] tests: add a bump-map test



commit 1c91417f31c6515150c9c0d425cf6603ca15a577
Author: Thomas Manni <thomas manni free fr>
Date:   Wed Jun 3 23:44:23 2015 +0200

    tests: add a bump-map test

 tests/compositions/Makefile.am            |    1 +
 tests/compositions/bump-map.xml           |   32 +++++++++++++++++++++++++++++
 tests/compositions/reference/bump-map.png |  Bin 0 -> 459684 bytes
 3 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 40a2e18..cdfa07c 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -18,6 +18,7 @@ TESTS = \
   apply-lens.xml                  \
   apply-lens2.xml                 \
   apply-lens3.xml                 \
+  bump-map.xml                    \
   checkerboard.xml                \
   clones.xml                      \
   colors.xml                      \
diff --git a/tests/compositions/bump-map.xml b/tests/compositions/bump-map.xml
new file mode 100644
index 0000000..e7a8850
--- /dev/null
+++ b/tests/compositions/bump-map.xml
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+       <node operation='gegl:bump-map'>
+               <params>
+            <param name='depth'>15</param>
+            <param name='elevation'>30.0000</param>
+            <param name='tiled'>true</param>
+            <param name='offset-x'>100</param>
+            <param name='offset-y'>100</param>
+        </params>
+               <node operation='gegl:load'>
+                       <params>
+                       <param name='path'>data/duck.png</param>
+               </params>
+               </node>
+               
+       </node>
+       <node operation='gegl:crop'>
+               <params>
+            <param name='x'>0</param>
+            <param name='y'>0</param>
+            <param name='width'>300</param>
+            <param name='height'>500</param>
+        </params>
+       </node>
+       <node operation='gegl:color'>
+           <params>
+            <param name='value'>rgba(0.5000, 0.5000, 0.5000, 1.0000)</param>
+            <param name='format'>RGBA float</param>
+        </params>
+       </node> 
+</gegl>
\ No newline at end of file
diff --git a/tests/compositions/reference/bump-map.png b/tests/compositions/reference/bump-map.png
new file mode 100644
index 0000000..d24b14f
Binary files /dev/null and b/tests/compositions/reference/bump-map.png differ


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