Ok, time to have some more fun with gideros: GIDEROS LUA SHADERS
I am playing around to see what I can understand from the gideros lua shader demo.


I have mixed two shaders wave + bloom and I see that I can get
the outline of the character already
So my goal has become to "code" a shader to have the outline of my character

Please
don't help me yet.
Relax cafe category
Comments
It works with lua already (but only in docking branch
https://github.com/MultiPain/Gideros_ImGui/blob/952ddd90a3cb54b8bdc4b3b793d2ad303025c6bb/main.cpp#L10346
So, I can give it a try.
Likes: MoKaLux, hgy29
For my 3d to spritesheet program I would like to add an outline option.
I have been trying to have this effect using luashader and stencyl but I have really no clue what I am doing
How could I draw an outline around a sprite. A 1 or 2 pixels black outline would be great.
Some charitable person?
Here is a project with me not successing
PS: I have read that stencyl do just what I want but I am clueless about how to use it (OpenGL).
Same, but more precise:
Likes: MoKaLux
Both shaders work great!
- You can only pass 4x4 matrices as cosntants from Gideros
- You can't access individual elements from the shader code (yet)
- Their type in lua shaders are respectively hF22, hF33 and hF44 (eg. high-precision Float 2x2, etc)
- The only math op currently supported are hF44*hF4 and hF33*hF3. Others can be added easily in luashader.lua
Likes: rrraptor, SinisterSoft
And one more question. Is there a way to create a custom function inside a shader program and use it?
Something like:
Those functions have to be declared to the lua-shader constructor, by supply a table describing the functions such as https://github.com/gideros/gideros/blob/master/Library/3dbase/3DShaders.lua#L172 as used in https://github.com/gideros/gideros/blob/master/Library/3dbase/3DLighting.lua#L110.
This is only supported for fragment shader currently, but it could be easilyb adapted to work with vertex functions.
Likes: rrraptor
Likes: keszegh, MoKaLux, SinisterSoft, hgy29
That tool looks great btw, should be one of the built-in tools!
@hgy29 Maybe if the tools system could also be a right-click menu option on the regular editors text? The highlighted text could be sent to the tool. When it's finished it could send it back?
https://deluxepixel.com
https://github.com/ocornut/imgui/issues/108
I used: https://github.com/BalazsJako/ImGuiColorTextEdit
Likes: SinisterSoft
https://deluxepixel.com
Likes: SinisterSoft
Or I could try to add "Zep" editor. The problem is that the code may not compile for all platforms.
Likes: keszegh, SinisterSoft, MoKaLux
Likes: MoKaLux
https://deluxepixel.com
https://github.com/gideros/gideros/pull/503
I will add the ability to edit the color theme from code.
Likes: MoKaLux, SinisterSoft
https://deluxepixel.com