Top right Wikipedia Cube Mapping order, top left my Cubemap, bottom left cubemap in buffer, bottom right panorama.

Shader https://www.shadertoy.com/view/NttGWr

  • Image shader — display Cubemap buffer, or BufA Cubemap in buffer, or BufB Cubemap as panorama (Equirectangular projection). Change #define USE_METHOD 0 (to 1–2–3) to change displaying image.
  • BufA — Cubemap emulation in single buffer.
  • BufB — panorama or Equirectangular projection.
  • CubeA
Expected 123 everywhere, screenshot from ANGLE DX11, Nvidia https://www.shadertoy.com/view/tlfBRB

Content:

  1. Reading float bits from texture and losing float bits. (first screenshot)
  2. Precompiled floats. CPU vs GPU.
  3. More about float bits and int/uint, float can be equal to 0. but

Reading float bits from texture and losing float bits:

Numbers on left side on screenshot:

uint…
GLSL Auto Tetris

The idea:

Download or Launch links:

Hardware requirement:

Danil

GLSL and usual coding

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store