aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/rtw/texture.zig
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-06-25 23:44:57 +0900
committernsfisis <nsfisis@gmail.com>2023-06-25 23:44:57 +0900
commitfb72e21e3d3896ac611145719e641ff774accb51 (patch)
tree2be7fe664b07494bd19d1fd1c2888ed0872fbcfd /src/rtw/texture.zig
parentca914b32fabdc5bb3e2782d91cc323205d0714fd (diff)
downloadRayTracingInOneWeekend.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.zig8
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),
};
}
};