-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed dirs to use underscore instead of period for use with python
- Loading branch information
Showing
334 changed files
with
683 additions
and
683 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
64 changes: 32 additions & 32 deletions
64
22.RaytracedAO/extractCubemap.bat → 22_RaytracedAO/extractCubemap.bat
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,33 +1,33 @@ | ||
@echo off | ||
|
||
REM examplary usage: | ||
REM mergeCubemap.bat 50 mergedImage.png right.png left.png top.png bottom.png front.png back.png | ||
|
||
set borderSz=%1 | ||
|
||
set img=%2 | ||
|
||
set right=%3 | ||
set left=%4 | ||
set top=%5 | ||
set bottom=%6 | ||
set front=%7 | ||
set back=%8 | ||
|
||
REM set extracted image size | ||
for /f "tokens=*" %%s in ('magick identify -format "%%w" %img%') do set sz=%%s | ||
set /a imgSz=sz/3 | ||
set /a extractedImgSz=imgSz-2*borderSz | ||
|
||
set /a x0 = borderSz | ||
set /a x1 = imgSz+borderSz | ||
set /a x2 = 2*imgSz+borderSz | ||
set /a y0 = borderSz | ||
set /a y1 = imgSz+borderSz | ||
|
||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x0%+%y0% %right% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x1%+%y0% %left% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x2%+%y0% %top% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x0%+%y1% %bottom% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x1%+%y1% %front% | ||
@echo off | ||
|
||
REM examplary usage: | ||
REM mergeCubemap.bat 50 mergedImage.png right.png left.png top.png bottom.png front.png back.png | ||
|
||
set borderSz=%1 | ||
|
||
set img=%2 | ||
|
||
set right=%3 | ||
set left=%4 | ||
set top=%5 | ||
set bottom=%6 | ||
set front=%7 | ||
set back=%8 | ||
|
||
REM set extracted image size | ||
for /f "tokens=*" %%s in ('magick identify -format "%%w" %img%') do set sz=%%s | ||
set /a imgSz=sz/3 | ||
set /a extractedImgSz=imgSz-2*borderSz | ||
|
||
set /a x0 = borderSz | ||
set /a x1 = imgSz+borderSz | ||
set /a x2 = 2*imgSz+borderSz | ||
set /a y0 = borderSz | ||
set /a y1 = imgSz+borderSz | ||
|
||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x0%+%y0% %right% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x1%+%y0% %left% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x2%+%y0% %top% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x0%+%y1% %bottom% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x1%+%y1% %front% | ||
magick convert %img% -crop %extractedImgSz%x%extractedImgSz%+%x2%+%y1% %back% |
File renamed without changes.
File renamed without changes.
File renamed without changes.
60 changes: 30 additions & 30 deletions
60
22.RaytracedAO/mergeCubemap.bat → 22_RaytracedAO/mergeCubemap.bat
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,31 +1,31 @@ | ||
@echo off | ||
|
||
set right=%1 | ||
set left=%2 | ||
set top=%3 | ||
set bottom=%4 | ||
set front=%5 | ||
set back=%6 | ||
set output=%~dpn7 | ||
|
||
REM examplary usage: | ||
REM mergeCubemap.bat right.png left.png top.png bottom.png front.png back.png outputImageName | ||
|
||
REM set image size | ||
for /f "tokens=*" %%s in ('magick identify -format "%%w" %right%') do set sz=%%s | ||
|
||
REM set image fromat | ||
for /f "tokens=*" %%s in ('magick identify -format "%%m" %right%') do set format=%%s | ||
|
||
set /a szx2=2*sz | ||
set /a outputWidth=3*sz | ||
set /a outputHeight=2*sz | ||
|
||
magick convert -size %outputwidth%x%outputHeight% canvas:none ^ | ||
-draw "image over 0,0 0,0 '%right%'" ^ | ||
-draw "image over %sz%,0 0,0 '%left%'" ^ | ||
-draw "image over %szx2%,0 0,0 '%top%'" ^ | ||
-draw "image over 0,%sz% 0,0 '%bottom%'" ^ | ||
-draw "image over %sz%,%sz% 0,0 '%front%'" ^ | ||
-draw "image over %szx2%,%sz% 0,0 '%back%'" ^ | ||
@echo off | ||
|
||
set right=%1 | ||
set left=%2 | ||
set top=%3 | ||
set bottom=%4 | ||
set front=%5 | ||
set back=%6 | ||
set output=%~dpn7 | ||
|
||
REM examplary usage: | ||
REM mergeCubemap.bat right.png left.png top.png bottom.png front.png back.png outputImageName | ||
|
||
REM set image size | ||
for /f "tokens=*" %%s in ('magick identify -format "%%w" %right%') do set sz=%%s | ||
|
||
REM set image fromat | ||
for /f "tokens=*" %%s in ('magick identify -format "%%m" %right%') do set format=%%s | ||
|
||
set /a szx2=2*sz | ||
set /a outputWidth=3*sz | ||
set /a outputHeight=2*sz | ||
|
||
magick convert -size %outputwidth%x%outputHeight% canvas:none ^ | ||
-draw "image over 0,0 0,0 '%right%'" ^ | ||
-draw "image over %sz%,0 0,0 '%left%'" ^ | ||
-draw "image over %szx2%,0 0,0 '%top%'" ^ | ||
-draw "image over 0,%sz% 0,0 '%bottom%'" ^ | ||
-draw "image over %sz%,%sz% 0,0 '%front%'" ^ | ||
-draw "image over %szx2%,%sz% 0,0 '%back%'" ^ | ||
%output%.%format% |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions
28
41.VisibilityBuffer/occlusionCull.frag → 41_VisibilityBuffer/occlusionCull.frag
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,15 +1,15 @@ | ||
#version 460 core | ||
#extension GL_EXT_shader_16bit_storage : require | ||
|
||
layout(early_fragment_tests) in; | ||
|
||
layout(location = 0) in flat uint instanceID; | ||
|
||
#define VISIBLE_BUFF_SET 0 | ||
#define VISIBLE_BUFF_BINDING 0 | ||
#include "occlusionCullingShaderCommon.glsl" | ||
|
||
void main() | ||
{ | ||
visibleBuff.visible[instanceID] = uint16_t(1u); | ||
#version 460 core | ||
#extension GL_EXT_shader_16bit_storage : require | ||
|
||
layout(early_fragment_tests) in; | ||
|
||
layout(location = 0) in flat uint instanceID; | ||
|
||
#define VISIBLE_BUFF_SET 0 | ||
#define VISIBLE_BUFF_BINDING 0 | ||
#include "occlusionCullingShaderCommon.glsl" | ||
|
||
void main() | ||
{ | ||
visibleBuff.visible[instanceID] = uint16_t(1u); | ||
} |
54 changes: 27 additions & 27 deletions
54
41.VisibilityBuffer/occlusionCull.vert → 41_VisibilityBuffer/occlusionCull.vert
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,28 +1,28 @@ | ||
#version 460 core | ||
|
||
layout(location = 0) in vec4 vMatRow0; | ||
layout(location = 1) in vec4 vMatRow1; | ||
layout(location = 2) in vec4 vMatRow2; | ||
layout(location = 3) in vec4 vMatRow3; | ||
|
||
layout(location = 0) out flat uint instanceID; | ||
|
||
void main() | ||
{ | ||
const vec3 pos[8] = { | ||
vec3(0.0, 0.0, 0.0), | ||
vec3(1.0, 0.0, 0.0), | ||
vec3(1.0, 1.0, 0.0), | ||
vec3(0.0, 1.0, 0.0), | ||
|
||
vec3(0.0, 0.0, 1.0), | ||
vec3(1.0, 0.0, 1.0), | ||
vec3(1.0, 1.0, 1.0), | ||
vec3(0.0, 1.0, 1.0), | ||
}; | ||
|
||
mat4 mvp = mat4(vMatRow0, vMatRow1, vMatRow2, vMatRow3); | ||
|
||
gl_Position = mvp * vec4(pos[gl_VertexIndex], 1.0); | ||
instanceID = gl_InstanceIndex; | ||
#version 460 core | ||
|
||
layout(location = 0) in vec4 vMatRow0; | ||
layout(location = 1) in vec4 vMatRow1; | ||
layout(location = 2) in vec4 vMatRow2; | ||
layout(location = 3) in vec4 vMatRow3; | ||
|
||
layout(location = 0) out flat uint instanceID; | ||
|
||
void main() | ||
{ | ||
const vec3 pos[8] = { | ||
vec3(0.0, 0.0, 0.0), | ||
vec3(1.0, 0.0, 0.0), | ||
vec3(1.0, 1.0, 0.0), | ||
vec3(0.0, 1.0, 0.0), | ||
|
||
vec3(0.0, 0.0, 1.0), | ||
vec3(1.0, 0.0, 1.0), | ||
vec3(1.0, 1.0, 1.0), | ||
vec3(0.0, 1.0, 1.0), | ||
}; | ||
|
||
mat4 mvp = mat4(vMatRow0, vMatRow1, vMatRow2, vMatRow3); | ||
|
||
gl_Position = mvp * vec4(pos[gl_VertexIndex], 1.0); | ||
instanceID = gl_InstanceIndex; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.