Compare commits

..

No commits in common. "c1e8e7ef092f41190dada7f6cea50bb867472a0d" and "4d869c1598719fc1fc69a656bf450af6f0eca18d" have entirely different histories.

1 changed files with 5 additions and 34 deletions

View File

@ -9,7 +9,7 @@ return {
name = "mainLight", name = "mainLight",
position = vector3(3, 2, 0), position = vector3(3, 2, 0),
type = enums.lightType.directional, type = enums.lightType.directional,
rotation = quaternion():setEuler(math.rad(150), 0, 0), rotation = quaternion():setEuler(math.rad(66), 0, 0),
}) })
local basePlate = engine.construct("block", workspace, { local basePlate = engine.construct("block", workspace, {
@ -47,7 +47,7 @@ return {
setupEnvironment = function () setupEnvironment = function ()
engine.graphics.clearColour = colour:fromRGB(56,56,66) engine.graphics.clearColour = colour:fromRGB(56,56,66)
engine.graphics.ambientColour = colour(0.3, 0.3, 0.3) engine.graphics.ambientColour = colour:fromRGB(235, 235, 235)
end, end,
createPBRDebugSpheres = function () createPBRDebugSpheres = function ()
@ -60,40 +60,11 @@ return {
roughness = r, roughness = r,
metalness = m metalness = m
}) })
end
end
for r = 0, 1, 0.1 do if m > 0.9 and r > 0.9 then
for m = 0, 1, 0.1 do b.colour = colour(0,0,0)
local b = engine.construct("block", workspace, {
size = vector3(10, 1, 10),
position = vector3((r*100)-5, 1, (m*100)-5),
roughness = r,
metalness = m
})
end end
end end
local cubes = {}
for r = 0, 1, 0.1 do
for m = 0, 1, 0.1 do
table.insert(cubes, engine.construct("block", workspace, {
size = vector3(0.5, 0.5, 0.5),
position = vector3((r*10)+10, 3, (m*10)-5),
mesh = "tevurl:3d/duck.glb",
roughness = r,
metalness = m,
colour = colour(1,1,0)
}))
end end
end end
spawnThread(function()
while wait() do
for _,v in pairs(cubes) do
v.rotation = v.rotation * quaternion:setEuler(0, math.rad(v.roughness*3), math.rad(v.metalness*3))
end
end
end)
end
} }