root/as3/Astro/ShaderFilter/CalcShader/src/shaders/colorize.pbk

リビジョン 427, 509 bytes (コミッタ: muta, コミット時期: 4 年 前)

Shader + Vector の計算テスト。

  • svn:executable 属性の設定値: *
Line 
1 <languageVersion : 1.0;>
2
3 kernel ColorFilter
4 <
5     namespace   : "muta";
6     vendor      : "muta";
7     version     : 1;
8     description : "This filter Fill color.";
9 >
10 {
11     parameter pixel4 color
12     <
13         defaultValue : pixel4(0, 0, 0, 1);
14         description  : "color";
15     >;
16    
17     input image4 src;
18     output pixel4 dst;
19
20     void evaluatePixel()
21     {
22         pixel4 tmp = sampleNearest(src, outCoord());
23         tmp.rgba += color;
24        
25         dst = tmp;
26     }
27 }
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。