User Tools

Site Tools


en:tutorials:shaders:hexagongrid2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:shaders:hexagongrid2 [2020/08/31 13:54 (5 years ago)] – ↷ Page moved from en:tutorials:community:ludig:hexagongrid2 to en:tutorials:shaders:hexagongrid2 sausageen:tutorials:shaders:hexagongrid2 [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1
Line 3: Line 3:
 This tutorial showcases how to draw a hexagon grid using a shader, as well as using the mouse position to highlight specific hexagon tiles.\\ \\ This tutorial showcases how to draw a hexagon grid using a shader, as well as using the mouse position to highlight specific hexagon tiles.\\ \\
 {{tutorials:shaders:hex_shader_screen.png?200x150}}\\ \\ {{tutorials:shaders:hex_shader_screen.png?200x150}}\\ \\
-It is based off of the this [[en:tutorials:community:sergeig:hexagongrid|Hexagon Grid Tutorial]], the key difference being that this example makes use of an axial/cubial coordinate system for pixel-to-hex calculations, as opposed to the grid-based system used by the old tutorial.+It is based off of the this [[en:tutorials:shaders:hexagongrid|Hexagon Grid Tutorial]], the key difference being that this example makes use of an axial/cubial coordinate system for pixel-to-hex calculations, as opposed to the grid-based system used by the old tutorial.
 =====Details===== =====Details=====
 The axial/cubial coordinate system and associated mathematics used in this example are derived from the theory presented in this blog post: https://www.redblobgames.com/grids/hexagons/ The axial/cubial coordinate system and associated mathematics used in this example are derived from the theory presented in this blog post: https://www.redblobgames.com/grids/hexagons/
en/tutorials/shaders/hexagongrid2.1598882084.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)