Searched refs:localToWorld (Results 1 – 2 of 2) sorted by relevance
/third_party/skia/samplecode/ |
D | Sample3D.cpp | 268 SkCanvas* canvas, SkColor, int index, bool drawFront, const SkM44& localToWorld) = 0; 291 SkM44 localToWorld = m * inv(trans); in onDrawContent() local 293 canvas->concat(localToWorld); in onDrawContent() 294 this->drawContent(canvas, f.fColor, index++, drawFront, localToWorld); in onDrawContent() 416 const SkM44& localToWorld) override { in drawContent() argument 423 builder.uniform("localToWorld") = localToWorld; in drawContent() 424 builder.uniform("localToWorldAdjInv") = normals(localToWorld); in drawContent()
|
/third_party/skia/site/docs/user/modules/ |
D | canvaskit.md | 552 uniform float4x4 localToWorld; 565 float3 plane_pos = (localToWorld * float4(p, 0, 1)).xyz; 654 const localToWorld = new CanvasKit.M44.multiply(m, CanvasKit.M44.mustInvert(trans)); 655 canvas.concat(CanvasKit.M44.multiply(trans, localToWorld)); 660 const uniforms = [...lightWorldPos, ...localToWorld, ...normalMatrix(localToWorld)];
|