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

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.

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

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

Sprite 52
article thumbnail

GLES2 renderer optimization - 2D batching

Mircosoft Game Dev

While Juan ( reduz ) has been busily working on Vulkan, the rest of the rendering team have not been idle. They have been working on many bug fixes and some improvements to the OpenGL rendering in the 3.x Up until now, the GLES2 2D renderer has been drawing primitives (such as rectangles) on an individual basis. How it works.

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. Do render Textures not support alpha in cocos? Basic masking functionality without using the mask component.

Texture 40