Smooth edges shader

Posted By: DLively

Smooth edges shader - 08/18/14 18:41

Hi, I was wondering if it is possible to smooth the edges of a block using a shader, so that the outside edges are cut off like 15 degrees. but only the perimeter. So If I had 2 connected blocks their perimeter would be cut off, and not the jointed faces.
Posted By: Kartoffel

Re: Smooth edges shader - 08/18/14 19:53

I think I can say that I've got quite some experience with shaders and I've never seen any shader that does something like this.
Also I don't know how this could be done using shaders, sorry.
Posted By: MasterQ32

Re: Smooth edges shader - 08/18/14 20:08

What about some kind of "displacement" shader or raytracing in the pixel shader against a plain and then clipping the pixel?
Posted By: Kartoffel

Re: Smooth edges shader - 08/18/14 20:16

well, that could work but it'd be ten times better and faster to just use actual geometry for this, I mean this is just a simple 45° bevel, nothing really detailed...
Also this would require silhoulette correction and that's just an overkill for such a simple thing.
Posted By: MasterQ32

Re: Smooth edges shader - 08/18/14 20:17

Yep.
Posted By: DLively

Re: Smooth edges shader - 08/18/14 22:55

Alrighty then laugh
I will just bevel the geometry if I choose to go that route. Its not a necessity for what I am doing, but rather a brain tickler tongue and if it was possible I'd have been interested in looking further into it.

Always glad to get some tips from the pros laugh
© 2024 lite-C Forums