Skip to content

Commit 9b8ac7f

Browse files
authored
Update Mipmap.md
1 parent cec7e9e commit 9b8ac7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/Mipmap/Mipmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,10 @@ struct Args
473473

474474
void Render(GpuRecord cmd, Time time)
475475
{
476-
// Using quaternions to create a view matrix is better than look at
477476
var t = (float)time.Total.TotalSeconds;
478477
var (sin_t, cos_t) = sincos(float2(t, t * 0.1f));
479478

479+
// Using quaternions to create a view matrix is better than look at
480480
var pos = mad(float3(0, -cos_t.y, sin_t.x), float3(1, 0.1f, 1), float3(0, -0.25f, -2));
481481
var rot = quaternion.Euler(float3(radians(-45f + cos_t.y * 15f), 0, 0));
482482
var view = float4x4.TR(-pos, inverse(rot));

0 commit comments

Comments
 (0)