Improved shaders_postprocessing example
This commit is contained in:
parent
c9d6b7e356
commit
65e6a6db53
1 changed files with 29214 additions and 26979 deletions
|
|
@ -16,11 +16,11 @@ const float PI = 3.1415926535;
|
|||
|
||||
void main()
|
||||
{
|
||||
float aperture = 178.0f;
|
||||
float aperture = 178.0;
|
||||
float apertureHalf = 0.5 * aperture * (PI / 180.0);
|
||||
float maxFactor = sin(apertureHalf);
|
||||
|
||||
vec2 uv = vec2(0);
|
||||
vec2 uv = vec2(0.0);
|
||||
vec2 xy = 2.0 * fragTexCoord.xy - 1.0;
|
||||
float d = length(xy);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue