article thumbnail

Use shader for spine animation

Cocos

I want to use shader to draw circle on spine animation (result of animtion after render) without using texture renderer, but in shader uv0 it calculates on atlas so the result is not as expected. Can anyone help me?

Shaders 40
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

The vertical axes of textures and picture pixels is shown above, when sampling textures in shaders, that is from top to bottom, which is top-right corner. Use UV in Shader Both 2D and 3D shaders in Cocos are obtained in the vertex shader (VS) and passed to the pixel shader (FS). to make the color in bottom darker.

Shaders 98
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Use shader for spine animation

Cocos

What I need is to get the uv of the animation render result, i am using cocos creator 2.1.3. Where can I find it in the source code?

article thumbnail

Use shader for spine animation

Cocos

Hi, if you want to get the UV data in spine’s atlas, you need to refer to the (engine source code) spine animation when submitting the data.

article thumbnail

Spine Animations broken after Chrome update on Androids

Cocos

OR you can try disabling uniform buffers in engine if you’re not using any custom shaders… but I really wouldn’t recommend this for a number of different reasons. Obviously, it’s resolved now… but should this happen again, you can either disable webgl 2.0

article thumbnail

Use shader for spine animation

Cocos

Unfortunately, the github source code for creator version 2.1.3 has been removed from maintenance, so I can’t directly point you to the source code you need. Recommended: You can use the visual studio code tool to view the engine source code for the creator you are using, hope it works for you!

Shaders 40
article thumbnail

Use shader for spine animation

Cocos

You can refer to the source code for this section of 2.4.11 github.com cocos/cocos-engine/blob/v2.4.11/extensions/spine/spine-assembler.js#L171-L284 extensions/spine/spine-assembler.js#L171-L284 L171-L284 fillVertices (skeletonColor, attachmentColor, slotColor, clipper, slot) { let vbuf = _buffer._vData, _vData, ibuf = _buffer._iData,

Shaders 40