MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / SmoothTriangle

Class SmoothTriangle

crates/luacad/src/render.rs:64–71  ·  view source on GitHub ↗

A triangle with per-vertex normals for smooth shading.

Source from the content-addressed store, hash-verified

62 Light {
63 direction: normalize([-1.0, 0.3, 0.5]),
64 diffuse: 0.55,
65 specular: 0.0,
66 },
67 Light {
68 direction: normalize([0.0, -1.0, 0.0]),
69 diffuse: 0.4,
70 specular: 0.0,
71 },
72 ]
73}
74

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected