Mosaic Shader

Available in Asset Store, or try the Demo!
Mosaic Shader is a collection of full screen shaders that helps you to mosaic your scene. Each shader uses a unique shape and offers you many possibilities for customization of your mosaic in real-time!

Main Features

  • Shapes - Currently there are three different shapes available which you can use to mosaic your scene: squares, circles, and hexagons. In the future, more shapes will be added.
  • Rotation - By providing an angle value, you are able to rotate the mosaic. If you change this value continuously, the mosaic will rotate in front of you.
  • Size - The size of the mosaics can be increased and decreased in the X and Y direction. This value can be changed in real-time too.
  • Shrinking - The shrink value is a way to decrease the size of the mosaics, while keeping the number of mosaics the same. It generates a gap between them.
  • Pixelation - This value allows you to set the amount of pixelation for the mosaic. You can go for a fully pixelated effect, keep the color of the original scene, or something in between.

Contact
Don’t hestiate to contact me if you have any questions, suggestions, or just want to show something cool. This can be done in various ways by for example posting a message here or use any of the sources listed below:

Mosaic Shader is now live and available on the Asset Store!

Hello, do you have any sort of free version we can test this out with? $25 is a bit steep to see how it works, but it does look really cool.

Hey there! At the moment, there is no free version available! However, I will have some time next week to work on a small demo that you could try out. If you have any other questions feel free to ask them.

I published a WebGL demo where you can try out the Mosaic Shader. This demo allows you to control the various parameters that alter the mosaic of your scene.

https://bonrust.bitbucket.io/MosaicShader/

Nice work, can’t wait to see Cairo tiling and other effects! However, right now even in the example scene when I run it I see everything upside down… using unity 2017.1

Figured out how to fix in the shader, just letting you know. Also, is there a simple way to make the mosaic in world space? instead as a camera space effect?

Thanks for the heads up!

A few months ago I did some tests with using the shaders in world space. This can be achieved by adding the following line to the uniforms: “float4 _MainTex_TexelSize;”. Next if you have to replace all references of _ScreenParams meaning that “_ScreenParams.x” => “_MainTex_TexelSize.z” and “_ScreenParams.w” => “_MainTex_TexelSize.w”. Probably I will make this change in the next update as well since it does not affect the shader when it is running as a camera affect. IF I’m correct you can now add this shader to a material and use it.

Regarding new effects… Next one will be some kind of lego mosaic effect. More info later this week :wink:

1 Like

As promised in my earlier post, some more news about the next update if this asset! Currently, I’m working on adding a new shader that will legolize your scene. See the image below for a preview :wink:

It has been a while since I posted an update here. The lego shader is now ready for release and it will added to this asset with the next update. It has all the features (e.g. rotation, shrinking, smooth edges…) as all the other shaders.

Further, I pushed an update some weeks ago which also fixed a bug when using the shaders in the Unity 2017 editor.

Hi!

Does the mosaic shader work with Unity Universal Render Pipeline?
If not, can you update it so it supports?
Also, can you run a video through the mosaic shader?

Thanks!

Hi,

Mosaic shader was never built with the Unity Universal Render Pipeline in mind, so I guess it won’t work. It would be possible to update it to support it, but I don’t know yet when I will do that. At the moment, I’m busy with releasing a new asset.

Regarding the video question, yes that would be possible.

That would be great as the Universal RP (old LWRP) is replacing the old built-in. Can you just do quick assessment whether it’s a big or small update for you? Thanks

Well, the shaders in this asset were built based on the standard rendering pipeline, so they are not even based on the “old” LWRP. Therefore from a first sight, I don’t think it will a quick replacement/update.

After I’m done with the final touches for my new asset, I will put some effort in this. Probably, I can make some time for it in a couple of weeks.

Thanks, looking forward. This is a great looking asset that I need to my Universal RP based project. More people will face the same need as Unity will push Universal RP hard with the 2019.3.

I understand and I will post an update when its ready!

Hi! Any progress with the update? Would love to use it soon?, thanks

Sorry for my late reply, I’m currently away for a few days.

I did not have time yet to implement anything. Probably, next week I will be able to start on it. So, I will get back to you.

1 Like

For the other people that are interested, I managed to get the shaders working for the Universal Rendering Pipeline. Now I’m preparing it for release, so probably it will be available for everyone in one of the coming weeks!

A new big update is now live at the assetstore. The pixelation shaders are no longer a dedicated full-screen effect, but can be used on everything!

1 Like

Can i use it in UGUI Raw image?