Blacksite/assets/shaders/surface_tint.wgsl
Rbanh 0798aa5d57 Build renderer and material component foundations
Add dedicated skinned rendering, pose restoration, shared Material and Material Instance slots, registry-driven components, Surface/Solari integration, transactional schema upgrades, navigation authoring, documentation, and evaluation evidence.
2026-07-12 00:24:06 -04:00

15 lines
430 B
WebGPU Shading Language

fn evaluate(
input: SurfaceInput,
params: SurfaceParams,
samples: SurfaceSamples,
) -> Surface {
var surface = surface_default();
surface.base_color = params.lanes[0];
surface.perceptual_roughness = params.lanes[1].x;
surface.metallic = params.lanes[2].x;
surface.emissive = params.lanes[3].rgb * params.lanes[4].x;
surface.reflectance = 0.5;
surface.occlusion = 1.0;
return surface;
}