Skip to content

Commit

Permalink
fix shaders float power op bug on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhi1980 committed Apr 6, 2018
1 parent b99e4bd commit f999b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mandelbulber2/opencl/engines/shaders.cl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ float3 BackgroundShader(__constant sClInConstants *consts, sShaderInputDataCl *i

float light = (dot(viewVectorNorm, input->lightVect) - 1.0f) * 360.0f
/ consts->params.mainLightVisibilitySize;
light = 1.0f / (1.0f + pow(light, 6.0)) * consts->params.mainLightVisibility
light = 1.0f / (1.0f + pow(light, 6.0f)) * consts->params.mainLightVisibility
* consts->params.mainLightIntensity;

pixel += light * consts->params.mainLightColour;
Expand Down

0 comments on commit f999b50

Please sign in to comment.