Materials - Sphere into square

Hello, i’m trying to make a sphere into a square.

I’m at this point but don’t know how to transform.

You can do something like this:

BoxMask is just another function you can find by right clicking or in the Palette panel.

How do i use this with a texture ?

You just plug the output of this Lerp to the Alpha input of your textures’ Lerp.

Thanks, but as you can see :

I made this :

And it show me this :

I set to 0, it’s a sphere, i set it to 1 it show nothing.

I’m based on this : - YouTube , and my texture is a landscape.

I dont see what the problem is. If you set transition parameter to 0 it is sphere and if you set it to 1 it should be cube. And any value between 0 and 1 will give you the transition.

OcclusionBounds value you are giving it may not be enough. Also make sure it is a vector parameter, not scalar.

Vector parameters from the start : tryed with 100, 500 and 1000 value, not working.

Hey finnaly figured out :

will result into this :