Squadron Z HD selected code snippets

Textured Vertex Shader Code

  • This code was used for post-processing in order to achieve the progressively inverted colors around the laser(it gradually inverts the color, inverting it more towards the center and smoothly doing so less as it goes towards the edges)


Post-Processing Pixel Shader Code

  • This code was used for post-processing in order to achieve the progressively inverted colors around the laser(it gradually inverts the color, inverting it more towards the center and smoothly doing so less as it goes towards the edges)


Random Terrain Generation Code

  • This code is used to generate the next line of randomized terrain.
%d bloggers like this: