Jump to content

How to dynamically change "base_transform" parameter from the script.


photo

Recommended Posts

1. Create a new material which is inherited from the "mesh_base" material for example.

 

2. Add a new "texture_transform" constant type parameter into the new material:

<parameter name="texture_transform" type="constant">0.0 0.0 0.0 0.0</parameter>

3. Change the "base_transform" expression to the following one:

<parameter name="base_transform">getParameter("texture_transform")</parameter>

4. Now you can change the "base_transform" parameter without expression recompilation.

Link to comment
  • 1 year later...
  • binstream unpinned this topic
×
×
  • Create New...