-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
codeStyleCheck.php of recent changes
- Loading branch information
Showing
19 changed files
with
336 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
/** | ||
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, | ||
* ,B" ]L,,p%%%,,,§;, "K | ||
* Copyright (C) 2017 Mandelbulber Team §R-==%w["'~5]m%=L.=~5N | ||
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,, | ||
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN | ||
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M | ||
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw | ||
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" § | ||
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M | ||
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N | ||
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM | ||
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§, | ||
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N | ||
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N | ||
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß" | ||
* §= "=C=4 §"eM "=B:m|4"]#F,§~ | ||
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß" | ||
* the hope that it will be useful, . "K= ,=RMMMßM""" | ||
* but WITHOUT ANY WARRANTY; .''' | ||
* without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* ########################################################################### | ||
* | ||
* Authors: Krzysztof Marczak ([email protected]) | ||
* | ||
* Normal vector calculation for opencl | ||
*/ | ||
|
||
float3 NormalVector(__constant sClInConstants *consts, float3 point, float mainDistance, | ||
float distThresh, sClCalcParams *calcParam) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
/** | ||
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, | ||
* ,B" ]L,,p%%%,,,§;, "K | ||
* Copyright (C) 2017 Mandelbulber Team §R-==%w["'~5]m%=L.=~5N | ||
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,, | ||
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN | ||
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M | ||
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw | ||
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" § | ||
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M | ||
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N | ||
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM | ||
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§, | ||
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N | ||
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N | ||
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß" | ||
* §= "=C=4 §"eM "=B:m|4"]#F,§~ | ||
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß" | ||
* the hope that it will be useful, . "K= ,=RMMMßM""" | ||
* but WITHOUT ANY WARRANTY; .''' | ||
* without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* ########################################################################### | ||
* | ||
* Authors: Krzysztof Marczak ([email protected]) | ||
* | ||
* misc shader function optimized for opencl | ||
*/ | ||
|
||
typedef struct | ||
{ | ||
float3 point; | ||
|
@@ -800,4 +834,4 @@ float4 VolumetricShader(__constant sClInConstants *consts, sShaderInputDataCl *i | |
|
||
out4.xyz = output; | ||
return out4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
/** | ||
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, | ||
* ,B" ]L,,p%%%,,,§;, "K | ||
* Copyright (C) 2017 Mandelbulber Team §R-==%w["'~5]m%=L.=~5N | ||
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,, | ||
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN | ||
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M | ||
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw | ||
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" § | ||
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M | ||
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N | ||
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM | ||
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§, | ||
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N | ||
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N | ||
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß" | ||
* §= "=C=4 §"eM "=B:m|4"]#F,§~ | ||
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß" | ||
* the hope that it will be useful, . "K= ,=RMMMßM""" | ||
* but WITHOUT ANY WARRANTY; .''' | ||
* without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* ########################################################################### | ||
* | ||
* Authors: Krzysztof Marczak ([email protected]) | ||
* | ||
* SSAO shader function optimized for opencl | ||
*/ | ||
|
||
//------------------ MAIN RENDER FUNCTION -------------------- | ||
kernel void SSAO(__global float *zBuffer, __global float *out, sParamsSSAO p) | ||
{ | ||
|
@@ -55,4 +89,4 @@ kernel void SSAO(__global float *zBuffer, __global float *out, sParamsSSAO p) | |
totalAmbient = max(totalAmbient, 0.0f); | ||
} | ||
out[i] = totalAmbient; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
/* | ||
* material.h | ||
/** | ||
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, | ||
* ,B" ]L,,p%%%,,,§;, "K | ||
* Copyright (C) 2017 Mandelbulber Team §R-==%w["'~5]m%=L.=~5N | ||
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,, | ||
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN | ||
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M | ||
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw | ||
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" § | ||
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M | ||
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N | ||
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM | ||
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§, | ||
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N | ||
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N | ||
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß" | ||
* §= "=C=4 §"eM "=B:m|4"]#F,§~ | ||
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß" | ||
* the hope that it will be useful, . "K= ,=RMMMßM""" | ||
* but WITHOUT ANY WARRANTY; .''' | ||
* without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* Created on: 9 cze 2017 | ||
* Author: krzysztof | ||
* See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* ########################################################################### | ||
* | ||
* Authors: Krzysztof Marczak ([email protected]) | ||
* | ||
* material struct for opencl | ||
*/ | ||
|
||
#ifndef MANDELBULBER2_OPENCL_MATERIAL_CL_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
/* | ||
* ssao_cl.h | ||
/** | ||
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, | ||
* ,B" ]L,,p%%%,,,§;, "K | ||
* Copyright (C) 2017 Mandelbulber Team §R-==%w["'~5]m%=L.=~5N | ||
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,, | ||
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN | ||
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M | ||
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw | ||
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" § | ||
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M | ||
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N | ||
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM | ||
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§, | ||
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N | ||
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N | ||
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß" | ||
* §= "=C=4 §"eM "=B:m|4"]#F,§~ | ||
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß" | ||
* the hope that it will be useful, . "K= ,=RMMMßM""" | ||
* but WITHOUT ANY WARRANTY; .''' | ||
* without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* Created on: 22 cze 2017 | ||
* Author: krzysztof | ||
* See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* ########################################################################### | ||
* | ||
* Authors: Krzysztof Marczak ([email protected]) | ||
* | ||
* ssao struct for opencl | ||
*/ | ||
|
||
#ifndef MANDELBULBER2_OPENCL_SSAO_CL_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.