From: Mikko Rasa Date: Wed, 7 Apr 2021 23:00:51 +0000 (+0300) Subject: Add a separate constant to enable clipping in standard shaders X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=594f5277e988a5a7b3b4ae381993da68ed733733;p=libs%2Fgl.git 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. --- 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