Fixed SSAO on intel.
In ssao.frag we are computing theta valaue and it looks that intel driver doesn't like too big values for sinus and cosinus computations. I just used modulo 360 to store lower angle values in theta variable.
This commit is contained in:
parent
3ec56386df
commit
cdae595724
@ -40,7 +40,7 @@ void main(void)
|
||||
float bl = 0.0;
|
||||
float m = log2(r) + 6 + log2(invSamples);
|
||||
|
||||
float theta = 2. * 3.14 * tau * .5 * invSamples + phi;
|
||||
float theta = mod(2. * 3.14 * tau * .5 * invSamples + phi, 360.);
|
||||
vec2 rotations = vec2(cos(theta), sin(theta)) * screen;
|
||||
vec2 offset = vec2(cos(invSamples), sin(invSamples));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user