java.lang.Object
de.grogra.gpuflux.scene.FluxObject
de.grogra.gpuflux.scene.shading.FluxShader
de.grogra.gpuflux.scene.shading.FluxWardShader
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorMapstatic final ColorMapstatic final ColorMapFields inherited from class de.grogra.gpuflux.scene.shading.FluxShader
SHADER_GGX, SHADER_IOR, SHADER_PHONG, SHADER_RGBA, SHADER_SWITCH, SHADER_WARD -
Constructor Summary
ConstructorsConstructorDescriptionFluxWardShader(Ward ward, FluxChannelMapBuilder channelBuilder) Builds GPU channel maps from the givenWardmaterial node. -
Method Summary
Methods inherited from class de.grogra.gpuflux.scene.FluxObject
getOffset, setOffset
-
Field Details
-
DEFAULT_DIFFUSE
-
DEFAULT_SPECULAR
-
DEFAULT_ROUGHNESS
-
-
Constructor Details
-
FluxWardShader
Builds GPU channel maps from the givenWardmaterial node.- Parameters:
ward- the Ward material to serialisechannelBuilder- builder used to allocate GPU channel offsets
-
-
Method Details
-
serialize
- Specified by:
serializein classFluxObject- Throws:
IOException
-