diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-06-25 23:44:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-06-25 23:44:57 +0900 |
| commit | fb72e21e3d3896ac611145719e641ff774accb51 (patch) | |
| tree | 2be7fe664b07494bd19d1fd1c2888ed0872fbcfd /src/rtw/texture.zig | |
| parent | ca914b32fabdc5bb3e2782d91cc323205d0714fd (diff) | |
| download | RayTracingInOneWeekend.zig-fb72e21e3d3896ac611145719e641ff774accb51.tar.gz RayTracingInOneWeekend.zig-fb72e21e3d3896ac611145719e641ff774accb51.tar.zst RayTracingInOneWeekend.zig-fb72e21e3d3896ac611145719e641ff774accb51.zip | |
chore: rename variables
Diffstat (limited to 'src/rtw/texture.zig')
| -rw-r--r-- | src/rtw/texture.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtw/texture.zig b/src/rtw/texture.zig index 95cbef4..aabc18d 100644 --- a/src/rtw/texture.zig +++ b/src/rtw/texture.zig @@ -42,10 +42,10 @@ pub const Texture = union(TextureTag) { pub fn value(tx: Texture, u: f64, v: f64, p: Vec3) Color { return switch (tx) { - TextureTag.solid => |solidTx| solidTx.value(u, v, p), - TextureTag.checker => |checkerTx| checkerTx.value(u, v, p), - TextureTag.noise => |noiseTx| noiseTx.value(u, v, p), - TextureTag.image => |imageTx| imageTx.value(u, v, p), + TextureTag.solid => |solid_tx| solid_tx.value(u, v, p), + TextureTag.checker => |checker_tx| checker_tx.value(u, v, p), + TextureTag.noise => |noise_tx| noise_tx.value(u, v, p), + TextureTag.image => |image_tx| image_tx.value(u, v, p), }; } }; |
