Info

Statistics

  • Download count4,197 total downloads
  • Latest download count 2,494 downloads of latest version
  • Average download count3 downloads per day average

Owners

Description

(Webgl2 / WebGPU support) A better outline shader than the one that already exists on the C3 addon stack exchange

Discussion

  • 24 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Is it just me or something changed with construct and now the outline is making the sprite invisible. (Full screen mode). It seems to work on native screen mode, which is 427x240

    Edit: Fixed it. But still a strange bug.

    I changed my setup a bit and forgot about it. It was perspective camera with FOV 5. I changed it back to 10 and it works again.

  • Nice effect!

  • Thank you for the great effect, Skymen! It's very very useful. ✨

  • no work on Text

  • Not sure why people are saying it doesn't work on text. The text and spritefont objects can do an outline with bb code.

  • skymen there is one issue in this effect if we rotate layout 90 or 270 degree by setting its angle then outline streches from one side. see this image

    • Hi, yeah this is an issue with C3's effect compositor. It doesn't provide a good way to get the size of one layout pixel unit across all scales and angles. I use an approximation that hopefully works in most use cases, but assumes that the render target and the layout are aligned which isn't true if the layout is rotated.

      In fact my approximation only works at angles 0 and 180 and breaks on every other angle value, and there is no way to really fix this without also breaking the fact that the outline pixel size is tied to layout pixels.

      If you want, you can modify the effect. In the code you should find a value called "texelSize" which is my approximation, and instead use C3's "pixelSize" value and it should hopefully stop stretching, and you can counter act the wrong pixel size value by using bigger width values

  • Such a problem, I added an outline to the 3d objects, everything works well, but when I render the game in HTML5, launch it from my phone and go to fullscreen, fps starts to drop terribly.Although when the game is not in full screen, everything works fine.How to solve the problem?

  • how i activate it

  • Are there plans to update this addon for use with webgpu? or should i look for an alternative?

  • I know it's probably a lot of work, but WebGPU support would be really nice!

    • Hi,

      It's planned. I will try to get WebGPU support for all my shaders as soon as I can.

      It is a lot of work though, so please don't expect it to happen too quickly. I want to have this done in the next month or two.

  • Load more comments (9 replies)