Module gl1

Class GLSLChannelSPD

java.lang.Object
de.grogra.glsl.material.channel.GLSLChannelMap
de.grogra.glsl.material.channel.GLSLChannelSPD

public class GLSLChannelSPD extends GLSLChannelMap
GLSL channel map for spectral ChannelSPD channels. Converts the spectral curve to a gamma-corrected sRGB constant at shader compilation time via ColorMap.getAverageColor() and emits it as a vec3 literal. The colour stays fixed until the shader is recompiled.

Uses ColorMap (available in the math module) to avoid a hard compile-time dependency on the GPUFlux module. The runtime class is resolved once via Class.forName(java.lang.String) and cached in

invalid reference
#CHANNEL_SPD_CLASS
.
Author:
M Henke at YNL 2026
  • Constructor Details

    • GLSLChannelSPD

      public GLSLChannelSPD()
  • Method Details