From 594f5277e988a5a7b3b4ae381993da68ed733733 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 8 Apr 2021 02:00:51 +0300 Subject: [PATCH] Add a separate constant to enable clipping in standard shaders Declaring an array with zero size is not allowed, so using zero for max_clip_planes doesn't work. --- shaderlib/common.glsl | 7 +++++-- shaderlib/msp_interface.glsl | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/shaderlib/common.glsl b/shaderlib/common.glsl index f952c8bd..849d97c9 100644 --- a/shaderlib/common.glsl +++ b/shaderlib/common.glsl @@ -54,8 +54,11 @@ void standard_transform() out vec3 tbn_zenith_dir = eye_zenith_dir*eye_tbn_matrix; out float fog_coord = eye_vertex.z; - for(int i=0; i