Super simple lighting for LÖVR
#lovr #lighting #library #lua #gamedev
|
|
7 years ago | |
|---|---|---|
| README.md | 7 years ago | |
| conf.lua | 7 years ago | |
| depth.lua | 7 years ago | |
| main.lua | 7 years ago | |
| normal.lua | 8 years ago | |
| pbr.lua | 7 years ago | |
| phong.lua | 8 years ago |
A collection of lighting shaders for LÖVR.
Drop the shader you want to use in a LÖVR project, then require it. It will return a function that returns the Shader when called.
local phong = require('phong')
local shader = phong()
function lovr.draw()
lovr.graphics.setShader(shader)
-- draw stuff
end
t.gammacorrect = true in conf.lua when you use
this.