playMaker

Author Topic: set material float 4  (Read 3229 times)

mallenroh

  • Playmaker Newbie
  • *
  • Posts: 32
set material float 4
« on: March 09, 2014, 12:11:38 PM »
Is it possible to use the set material float action of a shaders float 4 parameter? (x,y,z, w)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: set material float 4
« Reply #1 on: March 12, 2014, 04:49:44 AM »
Hi,

 It's a color right? you should be able to, else can you share the shader in question? I'll give it a go.

bye,

 Jean

FranciscoToledo

  • Playmaker Newbie
  • *
  • Posts: 2
Re: set material float 4
« Reply #2 on: July 26, 2014, 02:52:09 AM »
Hi Jean,

I have a shader to set material Vector4.

Could you help animating this Vector "_WaveAndDistance" over time? Values ranging from -1 to +1 should create some nice grass animation effect with ease!

As I'm no programer Playmaker is my last resort!!

Thx,

Francisco

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: set material float 4
« Reply #3 on: July 31, 2014, 07:17:04 AM »
Hi,

 can you try this? tell me if it works. I had trouble testing for real as the shader gave me errors.

Bye,

 Jean

FranciscoToledo

  • Playmaker Newbie
  • *
  • Posts: 2
Re: set material float 4
« Reply #4 on: August 07, 2014, 09:37:00 AM »
Hey, that works great!

It's moving the parameters as expected, now it's just about getting them with the right visual effect.

Thanks a bunch!

;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: set material float 4
« Reply #5 on: August 11, 2014, 10:05:10 AM »
Hi,

 ok, it's not on the ecosystem and made an rss entry for it.

 Bye,

 Jean