Feral Heart
Help & Guidance => Game Help => Topic started by: AssassinPegasus on May 25, 2013, 09:56:24 pm
-
Im lookkting and lookting at the same fiel callded Tree wave...What dose it do?
-
Hm..if you're asking what the tree wave file does I think it does as effect for trees.
Just go to EffectMaker and test it out with the file, don't know if anything will actually happen though since I haven't tested it out either. x3
-
You can't actually "test out" the treeWave file because it's a .cg file. You can open it up in Notepad however and you'll see pretty much just a script.
void treeWave_VP(
float4 iPosition : POSITION,
float2 texCoord0 : TEXCOORD0,
out float4 oPosition : POSITION,
out float2 uv0 : TEXCOORD0,
uniform float uTime,
uniform float4x4 uWorld,
uniform float4x4 uWorldViewProj)
{
if(iPosition.y>2)
{
uTime += mul(uWorld, iPosition-float4(0,0,2,0)).x/100;
iPosition.xz += float2(sin(uTime), cos(uTime))*iPosition.y/100;
}
oPosition = mul(uWorldViewProj, iPosition);
uv0 = texCoord0;
}
void treeWave_FP(
float2 uv0 : TEXCOORD0,
out float4 color : COLOR,
uniform sampler2D texture)
{
color = tex2D(texture, uv0);
}
I can't say I know what this file does at the moment, honestly I'm finding it confusing but I'll look into it though xD
-
Lol none is caring about that lonely file XD
-
poor lonely file, yeah, Ive been scrolling through folders, and I noticed, but I didnt dare mess around with it o.o
-
file-For ever alone XD still is dosent work in effect maker