Shader usage - Windows platform #3687
-
|
Hey everyone! First of all thank you for this project! I just started to use Flame Engine some weeks ago. I would like to know is it possible to use SpriteComponent and custom shaders together? First I could not built shaders I found, the build process just stucked with impellerc.exe without any trace (found out with verbose build). I went to test out with simpler shaders like a simple solid color shader. (The build did not stuck, that is why I assume I did some errors previously.) Is there something which I am not aware of with custom shaders and paint or with the whole pipeline? Can you provide a full working example on windows how I should set up the project and create a compatible shader and use it on a single SpriteComponent image (which has a transparent background and and solid pixels as a drawing). I can provide you more details if necessary ^.^ Thank you for any information in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
You don't want to use a shader on the paint object, what you want to do is postprocessing with a shader. Wrap your component in a
PostProcessComponentand add your shader in there:https://docs.flame-engine.org/main/flame/post_processing.html#postprocesscomponent