Skip to content

Instantly share code, notes, and snippets.

View AchrafKassioui's full-sized avatar

Achraf Kassioui AchrafKassioui

View GitHub Profile
@AchrafKassioui
AchrafKassioui / SpriteKitLineShader.swift
Last active June 18, 2026 02:27
A minimal setup to start with SpriteKit shaders. This shader draws a line from point A to point B.
/**
# Line Shader
A minimal setup to start with SpriteKit shaders.
This setup uses a sprite as a drawing canvas.
A shader draws a line from point A to point B.
Touching the scene anywhere updates the point B location and the shader's drawing.