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

~14d ago

~1mth ago

mediadog: @ggml Yup, lots. Only used in 4.x, haven't tried in 5.x yet: https://www.unrealengine.com/marketplace/en-US/product/simple-udp-tcp-socket-client

~1mth ago

ggml: someone has sent udp bytes to unreal ?

~2mth ago

micha_nismus: worked out, thank you very much ! :-)

~2mth ago

joreg: @micha_nismus does this help? https://youtu.be/xkrbT45BgOQ

~2mth ago

micha_nismus: thx joerg. Can anybody help me why i can't see any renderer in gamma? thx :-)

~2mth ago

joreg: @micha_nismus instead of discord, we're using matrix, see: chat

~2mth ago

micha_nismus: searching for a public discord server for vvvv

~2mth ago

joreg: Join us for the 20th #vvvv meetup on January 19th: https://thenodeinstitute.org/event/20-worldwide-vvvv-meetup/

~2mth ago

joreg: @schlonzo re "SDSL support" did you see the Shader wizard? or do you mean something different?