Commit Graph

10 Commits (8b49f8324e08cd850382e5a3789eced9cd9c056e)

Author SHA1 Message Date
q3k 47e977cdd1 engine/main: daylight scene
This implements a daylight scene using a realistic sun, and adds a bit
of fakery by restoring 500 nits of ambient lighting.

However, now we have some weird specular-like glitches? Is it because of
the large float values? Doesn't matter much, this is temporary until we
implement image-based lighting, where floating point errors should get
corrected.
2020-07-26 16:57:17 +02:00
q3k 1ce2889608 engine/shaders: add camera post-processing, split up
We now also use shaderc instead of glslandValidator, which has #include.
2020-07-26 15:26:40 +02:00
q3k 56132c49a1 *: license under GPLv3 2020-07-24 00:59:00 +02:00
q3k 4425f9cdf8 engine/shaders: disable ambient lighting
spoooooky
2020-07-23 23:27:40 +02:00
q3k 2d1cbe539e engine/render: move lights to UBO
There's now data available both in a push constant (view matrix) and in
an UBO (light data, camera position). Not sure if we should maintain the
split, or move everything to UBOs.
2020-07-23 22:54:57 +02:00
q3k 29ff5f6eb4 engine/render/vulkan: analytic lighting and PBR basics
We implement a simple PBR shader that uses off-the-shelf maths from
[Kar13]. I attempt to trace and cite as much as possible, but the amount
of different approaches from both industry and academia makes it quite
difficult to find exact papers to cite - especially as my mathematical
skills are not high enough to derive, or check the derivation for any of
these myself.

[Kar13]
Brian Karis. 2013. "Real Shading in Unreal Engine 4"
URL: https://blog.selfshadow.com/publications/s2013-shading-course/karis/s2013_pbs_epic_notes_v2.pdf
2020-07-23 18:29:11 +02:00
q3k 2eaecfd1dd engine: pass roughness to shader
(this is not used as roughness yet, though)
2020-07-13 23:56:20 +02:00
q3k 0aefcdd347 engine/render: start implement multi-texture materials 2020-07-13 22:58:24 +02:00
q3k 1636b9efcc engine: textures 2020-05-09 00:40:47 +02:00
q3k 154dd2b5dc start forward shader with vertex data 2020-01-20 03:23:41 +01:00