Remove Animation Remove Debug Remove Pixel Remove Sprite
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. This is consistent with how most image file formats store pixel data, and with how most graphics APIs work (including DirectX, Vulkan, Metal, WebGPU, but not OpenGL). x,waveFactor.y-uv0.y);

Shaders 98
article thumbnail

[Share] 2D Post-Processing & Lighting Framework

Cocos

The most commonly used method involves rendering the camera to a RenderTexture (RT) and then displaying it on a Sprite. Surprise - 2D Lighting Effects I believe that not long ago, some people had already seen this animated image. This is a 2D lighting effect created with Cocos Creator. I tested it with an image.

Render 52
article thumbnail

Getting started with HaxeFlixel in 2021

Radiator Blog

The engine should be able to render and simulate 200+ lightweight game objects -- frame-animated sprites with simple collision, no fancy physics or shaders. I have to pay to use more than 1 font, or make an animation more than 5 seconds long? Reminder: for iOS, that means WebGL 1.0 and no WASM.) I didn't try to find out.

Sprite 52