Hi,
It looks like the spine-webgl runtime is missing the outline option.
Is there any plan to support it or is there some way to have it or resources/pointer to get it working there ?
Thanks
1. sayfa (Toplam 1 sayfa)
wighawag
1 month ago
- wighawag
- Mesajlar: 5
Mario
We don't plan on adding it, as there's no genreralized way to do it that works in all situations with WebGL. It depends on what states you set up for your app, what rendering buffers you're using (stencil? depth?), and so on.
You can try to find resources on simple outline shaders on the web, then use the
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/Shader.ts
If you're using
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/SceneRenderer.ts#L56
You can try to find resources on simple outline shaders on the web, then use the
Shader
class of spine-ts WebGL:https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/Shader.ts
If you're using
SceneRenderer
to draw your scene, you can set the shader it uses to draw skeletons via this field:https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/src/SceneRenderer.ts#L56
1 month ago
-
Mario - Mesajlar: 3082
Mark topic unread
• 1. sayfa (Toplam 1 sayfa)
Dön Runtimes
- Tüm zamanlar UTC