Remove Pixel Remove Render Remove Shaders Remove Sprite
article thumbnail

[Tutorial]Outer Stroke Effect for 2D Sprites

Cocos

Original: [link] Author: BitByBit Outer Stroke Effect for 2D Sprites Continuing from the previous article Inner Stroke Effect for 2D Sprites Introduction In the last article, we introduced the method of inner stroke and also discussed its pros and cons. First, we get the uv of the surrounding pixel through the offset uv.

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

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

[Share] 2D Post-Processing & Lighting Framework

Cocos

Post-processing effects, are used for further processing of rendered results to achieve various advanced and special effects. Analysis of 2D Post-Processing Solutions Cocos Creator currently lacks built-in support for post-processing in the 2D render phase, requiring developers to explore various approaches to achieve the rendering goals.

Render 52
article thumbnail

Maintenance release: Godot 3.4.1

Mircosoft Game Dev

Import: Fix texture atlas generation when source sprite is larger than generated atlas ( GH-55094 ). macOS: Fix driver crash when enabling per-pixel transparency on M1 macs ( GH-55464 ). Particles: Fix for double use of seed in random shader variables ( GH-55607 ). Rendering: Fix occasional dangling OmniLight RID ( GH-41360 ).

Tile 52
article thumbnail

Release candidate: Godot 3.4.1 RC 3

Mircosoft Game Dev

Import: Fix texture atlas generation when source sprite is larger than generated atlas ( GH-55094 ). macOS: Fix driver crash when enabling per-pixel transparency on M1 macs ( GH-55464 ). Particles: Fix for double use of seed in random shader variables ( GH-55607 ). Rendering: Fix occasional dangling OmniLight RID ( GH-41360 ).

Tile 52
article thumbnail

Release candidate: Godot 3.4.1 RC 2

Mircosoft Game Dev

Import: Fix texture atlas generation when source sprite is larger than generated atlas ( GH-55094 ). macOS: Fix driver crash when enabling per-pixel transparency on M1 macs ( GH-55464 ). Particles: Fix for double use of seed in random shader variables ( GH-55607 ). Input: Add Input.is_physical_key_pressed() method ( GH-55251 ).

Tile 52
article thumbnail

Maintenance release: Godot 3.2.2

Mircosoft Game Dev

2D batching for the GLES2 renderer. While most rendering work was postponed for the 4.0 release with its new Vulkan-based renderer, our contributors lawnjelly and Clay ( clayjohn ) decided to give some more attention to the 3.2 Top: 10,000 Sprites with a randomized modulate and position. Can you spot the difference?

Debug 52