Skip to content

davcri/pixel-spirit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Spirit

Pixel Spirit tarot shaders implemented in Godot 4.

The PixelSpirit Elements Deck is a tarot deck for learning GLSL shaders. Each PixelSpirit card has a visual element and its GLSL shader code. The cards are ordered from simplest to most complex, building a library of code functions that combine like a book of spells to form an infinite visual language.

preview.mp4
tarot.mp4

Tarot shaders

  • Each file in shaders/tarot-includes/*.gdshaderinc has a tarot_draw function. EG: 01-justice.gdshaderinc:
  • Godot 2D shaders are in shaders/canvas_item/*.gdshader files
  • Godot 3D shaders are in shaders/spatials/*.gdshader files
vec3 tarot_draw(vec2 uv) {
	return step(0.5, uv.x) * vec3(1.0, 1.0, 1.0);
}

SDFs and utils

All the required SDFs and util functions are in utils.gdshaderinc which can be simply copy-pasted in other Godot projects (there are some functions form Lygia's source code so make sure to read its license)


Resources

License