X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=blobdiff_plain;f=Textures.lua;h=a06faa7adbd3f0b023f4546f6ecfd5f9675fd066;hb=e9357ba46155930cc1dd92fd095fdf2c3b83b2d5;hp=b1d1cb308dda091f93cf2e59a9009c099eb04013;hpb=c86e8c7637a7368950add912b9bce244bbf9e689;p=raymarcher.git diff --git a/Textures.lua b/Textures.lua index b1d1cb3..a06faa7 100644 --- a/Textures.lua +++ b/Textures.lua @@ -19,9 +19,17 @@ local function make_phong(lights, colour, amb, spec, shiny) return thiscol end end + +local function make_count_texture() + return function (location, ray_dir, normal, count) + return {count/10, count/10, count/10} + end +end + Textures = { - make_phong = make_phong + make_phong = make_phong, + make_count_texture = make_count_texture } return Textures