orthographic function

bool orthographic(
  1. ShaderBindings b
)

Orthographic — P7: whether FogInfo.projection.x says the camera projects orthographically. False where the block is not bound, which is what the GLSL's F3D_NO_FOG stages are.

Implementation

bool orthographic(ShaderBindings b) =>
    b.vec4('FogInfo', 'projection', Vector4.zero()).x > 0.5;