Skip to content

vercidium-patreon/glvertexid

Repository files navigation

This repository is Part 2 of Vercidium's Free Friday series.

You can get access to the full Vercidium Engine source code by joining my Patreon or sponsoring me on GitHub sponsors.


This is a standlone renderer that uses gl_VertexID to render a heightmap with minimal data.

This project uses Silk.NET so it should be cross-platform, but I've only tested it on Windows.

Key files:

  • Client.cs creates the buffer and renders it
  • HeightmapShader.cs applies the gl_VertexID magic

An explanation of this gl_VertexID magic can be found here.


Controls:

  • WASD to move around
  • QE to move up/down
  • Space to view the wireframe

image

About

Heightmap rendering using gl_VertexID magic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages