2 using namespace Psychlops;
4 void psychlops_main() {
5 Canvas cnvs(1024,768,Canvas::window);
9 Color::setGammaValue(1.0,1.0,1.0);
12 Figures::ShaderGaussianDot shaderDot;
13 shaderDot.setSigma(6).centering();
16 shaderDot.to(imageDot);
17 shaderDot.fill = Color::red;
18 imageDot.centering().shift(0,100);
21 while(!Keyboard::esc.pushed()) {
22 cnvs.clear(Color::gray);
23 cnvs.msg(L"シェーダ", cnvs.getHcenter(), shaderDot.getTop());
24 shaderDot.shift(0.05,0).draw();
25 cnvs.msg(L"オフスクリーン画像", cnvs.getHcenter(), imageDot.getTop());
26 imageDot .shift(0.05,0).draw();