Shadron | How to draw the US flag with a shader (Shadron tutorial) @Shadron | Uploaded 7 years ago | Updated 1 hour ago
This tutorial demonstrates how you can easily recreate the US flag exactly according to specifications using Shadron, and export it in any resolution. The principles shown can be applied to many other 2D designs.
Finished script: gist.github.com/Chlumsky/4b044d6e0a83532a4f386879f73b2e56
Half-plane evaluation: gist.github.com/Chlumsky/693a5d9cfe324d8d113a493385c52a4b
Modified branchless implementation on Shadertoy: shadertoy.com/view/4sfBRf
Happy 4th of July!
© Viktor Chlumský 2017
http://www.shadron.info
This tutorial demonstrates how you can easily recreate the US flag exactly according to specifications using Shadron, and export it in any resolution. The principles shown can be applied to many other 2D designs.
Finished script: gist.github.com/Chlumsky/4b044d6e0a83532a4f386879f73b2e56
Half-plane evaluation: gist.github.com/Chlumsky/693a5d9cfe324d8d113a493385c52a4b
Modified branchless implementation on Shadertoy: shadertoy.com/view/4sfBRf
Happy 4th of July!
© Viktor Chlumský 2017
http://www.shadron.info