From 114e4ba76e023398eaf9aa2290f8864bcdc48ffb Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 21 Oct 2008 16:07:06 +0000 Subject: [PATCH] Corrected Shader. Now it correctly support per vertex color mode and light direction. All the shaders should be done in the same way... --- src/meshlab/shadersrm/phong.rfx | 136 +++++++++++++++++++------------- 1 file changed, 81 insertions(+), 55 deletions(-) diff --git a/src/meshlab/shadersrm/phong.rfx b/src/meshlab/shadersrm/phong.rfx index f2a1def9f..c25060703 100644 --- a/src/meshlab/shadersrm/phong.rfx +++ b/src/meshlab/shadersrm/phong.rfx @@ -905,22 +905,22 @@ > ]> - + 0250250Artist Editor1001-107072000382206371467312502505150250250Workspace1000-1040440012502500012502509190250250Output1002-10808269 +0250250Artist Editor1001-10130130331174fvLightPosition1100-107181820014567851427106001193306001193306001331174002000914220706110121331250250111110250250Workspace1000-10100104001250250001250176151150250250Output1002-101401430017262000331233117411811331174000193306Specular1101-106222230021263320193219330612211193306000193306Ambient1102-105262630025263320193219330612611193306000427106SpecularPower1103-1043030300292613204272427106130114271060031230 ]]> - + - - + + @@ -933,6 +933,7 @@ + @@ -941,24 +942,36 @@ - + - + - + - + + + + + + + + + + + + + @@ -969,32 +982,49 @@ Pass 0]]> + + + + + + + + + + + + + + + + + + + + + + + + + + +21/10/2008 18:5:45]]> +C:\Documents and Settings\Paolo\My Documents\devel\meshlab\src\meshlab\shadersrm\]]> - - - - - - - - - - - - - + + + + @@ -1002,27 +1032,14 @@ C:\Documents and Settings\BELiAL\Desktop\]]> - + - + - - - - - - - - - + + +