article thumbnail

Sprite Shader Render out of bounds

Cocos

Good evening, I just finished writing my own custom shader to create 2D shadows on sprites, but I can’t find a way to increase the render area of ​​the sprite. The sprite size is 450x450, I created an atlas and used the trim option, this reduced the frame to 156x393. Is there a way to increase the render bounds?

Sprite 52
article thumbnail

Color Change of Sprite Renderer

Cocos

Hi, Is there any way to change color of Sprite Renderer Currently , I am using cocos 3.8. I just want to change sprite color tint in runtime, Or if it is possible to do with 3d material so good to know ,how can I achive that.

Sprite 52
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

Issue with masking a render Texture

Cocos

Hello all, I have a shader that takes the alpha value of one texture and applies to a sprite frame. Do render Textures not support alpha in cocos? Basic masking functionality without using the mask component.

Texture 40
article thumbnail

Color Change of Sprite Renderer

Cocos

SpriteRenderer does not provide an interface to modify the color. You can change it by modifying the material. To modify the material, you need to add color parameters to the corresponding shader. Like this surface-effect.effect.zip (1.2

Render 52
article thumbnail

Issue with masking a render Texture

Cocos

Hello all, I have a shader that takes the alpha value of one texture and applies to a sprite frame. Anyhow, the shader works, I can set it up on a spriteframe and it works as expected… however, when I add the render text. Basic masking functionality without using the mask component.

Texture 40
article thumbnail

How to render sprite as tiled in cocos creator?

Cocos

How to render sprite as tiled in cocos creator in c++?

Tile 40
article thumbnail

Changing vertexData of a sprite in 2D in cocos creator 3.6.2

Cocos

but facing one issue depending on the sprite type mesh which is in CC2.4 where there is a function to create render data renderData.createFlexData but I could not find any way to do it in CC3.6. its creating static data I am not able to render the vertices count when they are changing continuously.(This Since in CC3.6

Sprite 40