Feral Heart

Help & Guidance => Game Help => Topic started by: AssassinPegasus on May 25, 2013, 09:56:24 pm

Title: What dose it do?
Post 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?
Title: Re: What dose it do?
Post by: BouncyLion101 on May 25, 2013, 10:55:19 pm
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
Title: Re: What dose it do?
Post by: Ingredient on May 25, 2013, 11:45:44 pm
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.

Code: [Select]
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
Title: Re: What dose it do?
Post by: AssassinPegasus on May 26, 2013, 09:28:47 am
Lol none is caring about that lonely file XD
Title: Re: What dose it do?
Post by: kiaz1st on May 26, 2013, 12:40:10 pm
poor lonely file, yeah, Ive been scrolling through folders, and I noticed, but I didnt dare mess around with it o.o
Title: Re: What dose it do?
Post by: AssassinPegasus on May 26, 2013, 07:12:22 pm
file-For ever alone XD still is dosent work in effect maker