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
en:tutorials:shaders:hexagongrid2 [2020/08/31 06:54 (4 years ago)] – ↷ Page moved from en:tutorials:community:ludig:hexagongrid2 to en:tutorials:shaders:hexagongrid2 sausageen:tutorials:shaders:hexagongrid2 [2020/08/31 07:11 (4 years ago)] (current) – ↷ Links adapted because of a move operation sausage
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: 2020/08/31 06:54 (4 years ago) by sausage