Compare commits
No commits in common. "eb81a9426ab94df7d39996919990924cac6b39f4" and "3e9cb72a58aaa9cb18919ef4508c2f4483710c62" have entirely different histories.
eb81a9426a
...
3e9cb72a58
1 changed files with 1 additions and 5 deletions
|
@ -12,11 +12,7 @@ vec2 depthOfField() {
|
|||
float distance = depth - centerDepthSmooth;
|
||||
int stops = max(min(int(distance * 96), 5), 0);
|
||||
|
||||
#if pixelSize > 1
|
||||
float virtualSize = pow(float(pixelSize), 1 + stops);
|
||||
#else
|
||||
float virtualSize = pow(2f, stops);
|
||||
#endif
|
||||
float virtualSize = pow(float(pixelSize), 1 + stops);//1 + stops);
|
||||
vec2 view = vec2(viewWidth, viewHeight) / virtualSize;
|
||||
float offset = (ceil(virtualSize * 0.5) - 0.5) / virtualSize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue