Remove Alpha 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. aExtend is the expanded Alpha. Here, we take the opposite approach.

Sprite 52
article thumbnail

Shader on IOS error

Cocos

I have a question related to shaders. I created a game in which I added a shader; it works fine in web mobile and Android, but in iOS it gives an error during rendering. How to solve this issue version-3.8 error - Attribute a_uv0 is missing, add a dummy data for it. How to solve this issue version-3.8 1.0] } } u_dL: { value: 0.0,

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

D2 log 074 – New level format

Catnip Games

I export the rendered terrain from Blender as a RGBA image but with alpha value set to depth. The custom terrain shader uses the z-channel to draw water in lower areas of the level. The graphics backend rewrite took a while. However, the situation is now good. Interactive elements will be placed using the in-game editor.

Terrain 52
article thumbnail

Dev snapshot: Godot 4.0 beta 11

Mircosoft Game Dev

This beta includes a few big changes which may interest a lot of users: Animated sprites, both 2D and 3D, now support options for more precise timing of individual frames ( GH-65609 ). The illustration picture for this article is from The Mirror , an upcoming all-in-one game and game development platform currently in Closed Alpha.

Beta 105
article thumbnail

Dev snapshot: Godot 4.0 beta 11

Mircosoft Game Dev

This beta includes a few big changes which may interest a lot of users: Animated sprites, both 2D and 3D, now support options for more precise timing of individual frames ( GH-65609 ). The illustration picture for this article is from The Mirror , an upcoming all-in-one game and game development platform currently in Closed Alpha.

Beta 80
article thumbnail

Making shaders more accessible

Mircosoft Game Dev

About shaders. For most game developers, shaders are this scary monster that presents itself with such a complexity that it seems out of reach. In reality, shaders are quite simple by default and just get more complex the more you add to them. Our sprite is 32x32 pixels in size, and it must be drawn at some position.

Shaders 52
article thumbnail

Godot's 2D engine gets several improvements for upcoming 4.0

Mircosoft Game Dev

The main one was performance due to every light being rendered in a separate draw pass. x is that, several times, sprites are separated in many nodes in order to be animated or assembled. The regular CanvasOccluders have a new option to enable them for SDF rendering. accum/max_dist); if (accum < fade_margin) { alpha *= max(0.0,accum

Engine 55