Files
filament/docs
Pixelflinger 13767c3bb4 Don't use gl_FragCoord anywhere as it breaks with custom viewports
This fixes dynamic lighting and SSAO when a viewport is not in 0,0.
In practice this currently happens only when all post-processing is
disabled.

Instead of using gl_FragCoord we introduce a new API, 
getNormalizedViewportCoord(), which as the name implies returns
normalized [0, 1] viewport coordinates with origin at the bottom-left,
on all platforms.

This is implemented in this PR by interpolating gl_Position.
2020-05-01 23:51:17 -07:00
..
2020-02-25 13:50:34 -08:00
2018-11-13 11:24:41 -08:00
2020-04-25 10:37:13 -07:00
2020-02-25 13:50:34 -08:00
2020-02-25 13:50:34 -08:00
2020-02-25 13:50:34 -08:00
2018-11-01 17:05:30 -07:00
2020-04-15 10:58:13 -07:00
2020-04-15 10:58:13 -07:00
2020-02-25 13:50:34 -08:00
2020-02-25 13:50:34 -08:00
2018-08-03 10:38:22 -07:00
2020-02-25 13:50:34 -08:00