This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

# チュートリアル エフェクト - Mr. Wiggle

TOC: エフェクトとシェーダー
Back: 頂点シェーダーの準備
Next: 表示するための数式

```vs2ps VS(
float4 PosO  : POSITION,
float4 TexCd : TEXCOORD0)
{
...
}```

`PosO.x += sin(PosO.y);`

`PosO.x += sin(PosO.y * Frequency + Phase) * Amplitude;`

そうすると入力を伴う頂点シェーダーは次の様になります:

```float Frequency = 10;
float Phase = 0;
float Amplitude = 0.01;

vs2ps VS(
float4 PosO  : POSITION,
float4 TexCd : TEXCOORD0)
{
//declare output struct
vs2ps Out;

//offset x coordinate
PosO.x += sin(PosO.y * Frequency + Phase) * Amplitude;

//transform position
Out.Pos = mul(PosO, tWVP);

//transform texturecoordinates
Out.TexCd = mul(TexCd, tTex);

return Out;
}```

そして、その結果パッチはこの様になります:

Next: 表示するための数式
Back: 頂点シェーダーの準備
TOC: エフェクトとシェーダー

# Shoutbox

~3d ago

skyliner: the vcard page is assembled by personal settings + user page

~3d ago

lasal: thank you guys but this is to edit the user data, i don't find how to edit the vcard

~3d ago

CeeYaa: @lasal - haha nice - I think it's funny - you should keep it ;) to change - HOME-SETTINGS - PERSONAL SETTINGS

~3d ago

skyliner: @lasal: here?

~3d ago

lasal: who knows how to edit the vcard?

~3d ago

joreg: get started with #vl with this first part of a series of "vl for vvvv users" tutorial: https://discourse.vvvv.org/t/vl-for-vvvv-users-key-differences-1-5/15919 #vvvv

~3d ago

joreg: speak japanese? this looks like a great resource for #vvvv tipsntricks: https://qiita.com/advent-calendar/2017/vvvv