Some code tweaks
This commit is contained in:
parent
8724cf2ea5
commit
a6297a2be1
1 changed files with 16 additions and 20 deletions
|
|
@ -15,7 +15,7 @@ in vec3 fragPosition;
|
|||
uniform samplerCube environmentMap;
|
||||
|
||||
// Constant values
|
||||
const float PI = 3.14159265359f;
|
||||
const float PI = 3.14159265359;
|
||||
|
||||
// Output fragment color
|
||||
out vec4 finalColor;
|
||||
|
|
@ -31,8 +31,8 @@ void main()
|
|||
vec3 right = cross(up, normal);
|
||||
up = cross(normal, right);
|
||||
|
||||
float sampleDelta = 0.025f;
|
||||
float nrSamples = 0.0f;
|
||||
float sampleDelta = 0.025;
|
||||
float nrSamples = 0.0;
|
||||
|
||||
for (float phi = 0.0; phi < 2.0*PI; phi += sampleDelta)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue