KrazenLabs Shader Library

This package is a dependency for certain KrazenLabs shaders.

Please install this package if instructed to by a given shader.

  • Fixed specular highlights being too dim
  • Fixed pseudo specular evaluations using the wrong SH band
  • Fixed Point Light Volumes being counted twice in the SH pseudo specular
  • Anisotropic highlights now keep widening as smoothness falls instead of stalling around 0.8
  • Anisotropic and isotropic paths now agree at anisotropy zero, so a mask crossing the branch threshold no longer shows a seam
  • The secondary lobe for anisotropic highlights is now weighted by anisotropy strength rather than held at a flat half
  • Anisotropy is capped short of its extremes, holding the axis ratio at 19:1 instead of letting it track roughness up to 500:1
  • Anisotropic axes are derived only once per pixel and shared by the distribution and the visibility
  • Added KL_AnisotropicAlphas and KL_TrowbridgeReitzAnisotropicNDF; TrowbridgeReitzAnisotropicAlphas and TrowbridgeReitzAnisotropicNormalDistribution are unchanged as reference
  • Direct highlights are considerably brighter overall, so materials tuned against the previous specular will want revisiting
  • Breaking: anisotropy now has scalable strength, running -1 to 1, zero isotropic, with the sign selecting the stretched axis, replacing the 0.5 to 1.0 input that was remapped to -20 to 1. Masks driving it want their neutral value at mid grey
  • Potentially breaking: DistributionFunction now takes ShadedSurface
  • Complete HLSL rewrite of the surface model
  • Up to 4 Point Light Volumes now contribute to specular highlights
  • Various smaller bugfixes in the light model
  • Complete HLSL rewrite of the surface model
  • Up to 4 Point Light Volumes now contribute to specular highlights
  • Various smaller bugfixes in the light model
  • Added Safe Normalize
  • Fixed energy loss on diffuse light caused by heuristic speculars
  • Reworked Point Light Volumes sampling: every light in range now contributes to the SH instead of only the first four
  • Point Light Volumes are now picked per pixel by brightness, no longer by array index (the array is not distance sorted)
  • Added dominant Point Light Volume output (color, direction and count) for direct BRDF evaluation
  • Fixed SHDirectionality folding light probe L2 into estimates for Light Volume SH
  • Removed MaxPointCount
  • Breaking: KL_PointLightVolumeSH signature changed
  • Breaking: SHDirectionality no longer includes light probe L2 by default, use the parameterless overload for the light probe path
  • Added Lightmapping support
  • Added Bakery MonoSH support
  • Refactored Spherical Harmonics
  • Refactored LightVolumes support
  • Fixed LightVolumes dependency
  • Initial release