From 78d34f3b3cec6222f87fc69eddfe66f3fc91b1cf Mon Sep 17 00:00:00 2001 From: Matthew Moulton <30711895+mmoult@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:47:17 -0500 Subject: Improve documentation and example formatting consistency (#4299) * Improve doc and example consistency Improve consistency of formatting in example shaders and remove trailing spaces in documentation files. Fix minor typos. --- examples/model-viewer/shaders.slang | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/model-viewer') diff --git a/examples/model-viewer/shaders.slang b/examples/model-viewer/shaders.slang index 81ec89d03..d99a4b1da 100644 --- a/examples/model-viewer/shaders.slang +++ b/examples/model-viewer/shaders.slang @@ -90,7 +90,7 @@ struct BlinnPhong : IBRDF // for our example cube, and the result is a non-finite value // coming out of `evaluate()` if we include the specular term. -// return kd*nDotL + ks*pow(nDotH, specularity); + // return kd*nDotL + ks*pow(nDotH, specularity); return kd*nDotL; } }; @@ -142,7 +142,6 @@ interface IMaterial // assumption in the shader code that `gMaterial` will be plugged // in using an instance of `SimpleMaterial` // -// struct SimpleMaterial : IMaterial { // We declare the properties we need as fields of the material type. @@ -200,7 +199,7 @@ interface ILightEnv float3 illuminate(SurfaceGeometry g, B brdf, float3 wo); // // Note that the `illuminate()` method is allowed as an interface - // requirement in Slang even though it is a generic. Constract that + // requirement in Slang even though it is a generic. Contrast that // with C++ where a `template` method cannot be `virtual`. }; -- cgit v1.2.3