Module gpuFlux

Class FluxWardShader


public class FluxWardShader extends FluxShader
GPU (GPUFlux / OpenCL) wrapper for the Ward anisotropic BRDF shader.

Serialisation layout (matches wardshader.h WardShader struct):

   int   type                = SHADER_WARD (4)
   int   diffuse             channel offset
   int   specular            channel offset
   int   roughness           channel offset  (alpha_u)
   int   roughnessV          channel offset  (alpha_v; -1 if isotropic)
   int   transparency        channel offset  (-1 => opaque, delta BTDF)
   int   diffuseTransparency channel offset  (-1 => none,  Lambertian BTDF)
   int   emissive             channel offset  (-1 => none,  self-emission)
 
Author:
MH at YNL 2026
  • Field Details

    • DEFAULT_DIFFUSE

      public static final ColorMap DEFAULT_DIFFUSE
    • DEFAULT_SPECULAR

      public static final ColorMap DEFAULT_SPECULAR
    • DEFAULT_ROUGHNESS

      public static final ColorMap DEFAULT_ROUGHNESS
  • Constructor Details

    • FluxWardShader

      public FluxWardShader(Ward ward, FluxChannelMapBuilder channelBuilder)
      Builds GPU channel maps from the given Ward material node.
      Parameters:
      ward - the Ward material to serialise
      channelBuilder - builder used to allocate GPU channel offsets
  • Method Details