Commit graph

11 commits

Author SHA1 Message Date
8ec8b16a88
support 3 directional lights 2022-03-19 17:39:52 -04:00
db81b3a3b9
create helper for directional light 2022-03-19 17:23:25 -04:00
e96c1c2e55
refactor into helpers 2022-03-19 17:09:27 -04:00
66e2741912
hlsli reorganization 2022-03-19 16:55:22 -04:00
a4bfd4e0c3
add specular 2022-03-19 16:49:03 -04:00
57650e310e
calculate directional light 2022-03-19 16:39:01 -04:00
9ca7b66945
figure out why normals weren't correct
turns out i was passing camera transpose instead of entity transpose
2022-03-19 16:34:55 -04:00
cd4ea05aae
define light in shader 2022-03-19 15:05:40 -04:00
096923a5aa
pass normals and worldPosition to pixel shader 2022-03-19 14:47:50 -04:00
948fafec16
define ambient for shader 2022-03-19 14:41:21 -04:00
15bf4521b4
begin working on new pixel shader with roughness 2022-03-19 14:32:21 -04:00