This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

How can I use shaders to add a drop shadow to editable text?

fiddlemouthfiddlemouth Posts: 3Member

I'm using a TextEdit node which doesn't have any built in drop shadow option like I'm told Label does.
My current solution it to create another TextEdit behind and below the main one, that is set to always contain the same text as the main TextEdit and be darker, but that solution comes with a lot of issues.
So my only other idea to solve this is to somehow implement it with shaders, which I have very little previous experience with.
How can I do this?

Answers

  • bitshift-rbitshift-r Posts: 54Member

    Would an outline work instead of a drop shadow?

  • bitshift-rbitshift-r Posts: 54Member

    I tried poking at a shader based solution, but I'm having issues with the character alphas.

    Depending on what you are doing with this control (long form text editing? single line text entery?) you might try rolling your own text edit using a label and manual Input processing.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.