Skip to content

Commit

Permalink
renamed dirs to use underscore instead of period for use with python
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazardu committed Oct 18, 2023
1 parent 2b1e46a commit e9a5efa
Show file tree
Hide file tree
Showing 334 changed files with 683 additions and 683 deletions.
File renamed without changes.
File renamed without changes.
1,148 changes: 574 additions & 574 deletions 01.HelloWorld/main.cpp → 01_HelloWorld/main.cpp

Large diffs are not rendered by default.

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 removed 03.GPU_Mesh/bin/screenshot.png
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.
Binary file removed 18.MitsubaLoader/bin/mitsubaloader.exe
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.
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 22.RaytracedAO/mergeCubemap.bat → 22_RaytracedAO/mergeCubemap.bat
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 removed 25.Blur/bin/screenshot.png
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.
Binary file removed 33.Draw3DLine/bin/screenshot.png
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.
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);
}
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.
Loading

0 comments on commit e9a5efa

Please sign in to comment.