From 8794dc46b439c015ac8cdb6232e2c294b99900ce Mon Sep 17 00:00:00 2001 From: Massimiliano Corsini maxcorsini Date: Thu, 6 Dec 2007 11:17:28 +0000 Subject: [PATCH] *** empty log message *** --- src/meshlab/shadersrm/hatching.rfx | 1110 ++++++++++++++++++++++++++++ 1 file changed, 1110 insertions(+) create mode 100644 src/meshlab/shadersrm/hatching.rfx diff --git a/src/meshlab/shadersrm/hatching.rfx b/src/meshlab/shadersrm/hatching.rfx new file mode 100644 index 000000000..c2f2e89fc --- /dev/null +++ b/src/meshlab/shadersrm/hatching.rfx @@ -0,0 +1,1110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + 0250250Artist Editor1001-107072000382206281467312502505150250250Workspace1000-1040440012502500012502509190250250Output1002-10808269 +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.0) + { + weight0.x = 1.0; + } // End if + + else if (hatchFactor>4.0) + { + weight0.x = 1.0 - (5.0 - hatchFactor); + weight0.y = 1.0 - weight0.x; + } // End else if + + else if (hatchFactor>3.0) + { + weight0.y = 1.0 - (4.0 - hatchFactor); + weight0.z = 1.0 - weight0.y; + } // End else if + + else if (hatchFactor>2.0) + { + weight0.z = 1.0 - (3.0 - hatchFactor); + weight1.x = 1.0 - weight0.z; + } // End else if + + else if (hatchFactor>1.0) + { + weight1.x = 1.0 - (2.0 - hatchFactor); + weight1.y = 1.0 - weight1.x; + } // End else if + + else if (hatchFactor>0.0) + { + weight1.y = 1.0 - (1.0 - hatchFactor); + weight1.z = 1.0 - weight1.y; + } // End else if + + vHatchWeights0 = weight0; + vHatchWeights1 = weight1; + + +}]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +