Remove Alpha Remove Clipping Remove Render Remove Sprite
article thumbnail

Making shaders more accessible

Mircosoft Game Dev

To explain the idea of how shaders work, let's consider a very simple shader for drawing a sprite to the screen. Our sprite is 32x32 pixels in size, and it must be drawn at some position. The following OpenGL code sends the sprite to the shader for drawing: OpenGL Commands. As you can see: Vertices / UVs are sent via attributes.

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. 2D Masking / Clipping. The regular CanvasOccluders have a new option to enable them for SDF rendering. Improved 2D lighting.

Engine 55