Jump to content

Is there anything similar to MaterialPropertyBlock in Unity3D when dealing with changing per-image property of Webgl pipelines in Phaser3


Gordon G
 Share

Recommended Posts

Hi Phaser3 learner here, How is everyone?

I was trying to pass a value to shader, for example, an 'intensity' value. But for different images the intensity is different, for example image 1 with intensity 0.5, image 2 with intensity 1.0.

I have created a SinglePipeline and changed the value of by calling set1f('intensity', 0.5), but yea, it applies to all images that shared the same pipeline.

In Unity there is a material property block that allows you to change per-material property but I am wondering is there a similar thing in Phaser3 or is there a different way to do the job?

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...