Jump to content

Expressions in materials behave erratically


photo

Recommended Posts

Hello,

I'm trying to animate multiple channels in a material using the 2.10.0.2 SDK.

Setup:

  1. new material inheriting from mesh_base.
  2. Enable Emission.
  3. Add an expression on Albedo: vec4(0.5+0.5*sin(time),0,0,1)
  4. Emission Intensity : sin(time)*2-1
  5. Base UV Transform: vec4(1,1,round(time*10.0)/10,round(time*10)/10)

Result: Albedo doesn't change with time, unless I'm moving another slider (eg. Roughness). And when doing so, The expression of UV Transform changes to its current value instead of the expression when mouse is released.

expression_bug.gif.56eaa1811605846d9b5a20686113d73d.gif

Note that it looks like the Albedo is not animated even in runtime, not just in the Editor.

Thanks.

Link to comment
×
×
  • Create New...