I’m trying to create a shader for generating colored stripes. I found a stripe shader in the orange book, but this one does only create 2 stripes, and I need one that makes 3. I tried to figure out how to modify the example, but so far no luck.
Can somebody hint me in the right direction how to go from 2 to 3 stripes?
Shader for generating Procedural Stripes
// Author: OGLSL implementation by Ian Nurse
// Copyright (C) 2002-2006 LightWork Design Ltd.
// See LightworkDesign-License.txt for license information