Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
SpecularLighting.h File Reference

Precompiled specular lighting projections with a shared storage parameter layout. More...

Include dependency graph for SpecularLighting.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

const CompiledShaderView & donner::gpu::shader::programs::SpecularLightingShader ()
 Returns WGSL and reflection for distant, point and spot Phong lighting. The shader reconstructs normals from bounded alpha samples and uses maximum RGB as alpha.
const CompiledShaderView & donner::gpu::shader::programs::SpecularLightingNativeShader ()
 Returns only the platform-native MSL or SPIR-V projection and reflection.

Detailed Description

Precompiled specular lighting projections with a shared storage parameter layout.

Function Documentation

◆ SpecularLightingNativeShader()

const CompiledShaderView & donner::gpu::shader::programs::SpecularLightingNativeShader ( )

Returns only the platform-native MSL or SPIR-V projection and reflection.

Returns
Stable view into a process-lifetime artifact.

◆ SpecularLightingShader()

const CompiledShaderView & donner::gpu::shader::programs::SpecularLightingShader ( )

Returns WGSL and reflection for distant, point and spot Phong lighting. The shader reconstructs normals from bounded alpha samples and uses maximum RGB as alpha.

Returns
Stable view into a process-lifetime artifact.