Module shader

Source
Expand description

Physically based shader code.

Functions§

fragment_impl
PBR fragment shader capable of being run on CPU or GPU.
get_material
Returns the Material from the stage’s slab.
normal_distribution_ggx
Trowbridge-Reitz GGX normal distribution function (NDF).
outgoing_radiance
sample_irradiance
sample_specular_reflection
shade_fragment
texture_color