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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <typeinfo> | |
//---------------------------------- | |
// Reflection System using typeid and decltype | |
struct MemberInfo | |
{ | |
std::string name; | |
std::string typeName; |
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
/** | |
* Dixy12 - DirectX12 learning sandbox | |
* Source: https://www.3dgep.com/learning-directx-12-1 | |
*/ | |
#include "common.h" | |
//---------------------------------------------------------------- | |
constexpr uint8_t g_NumFrames = 3; // The number of swap chain back buffers. 2 Back buffers + 1 presentation image = 3 | |
//---------------------------------------------------------------- | |
namespace AppGlobalSettings { |
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
# [Source] : https://blender.stackexchange.com/questions/46795/is-there-a-quick-way-to-copy-the-object-name-to-the-mesh-data-name | |
import bpy | |
objects = bpy.data.objects | |
for obj in objects: | |
if obj.data and obj.data.users == 1: | |
obj.data.name = obj.name |
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
Grab the .git directory by cloning a bare repository | |
$ mkdir repo | |
$ git clone --bare http://github/user/repo repo | |
Make the .git directory and move the cloned files | |
$ mkdir repo/.git | |
$ mv repo/* repo/.git | |
Unzip the repository |
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
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTW |
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
#version 410 core | |
// Input from vertex shader | |
in VS_OUT { | |
vec3 normal; | |
vec2 texCoords; | |
} vs_in; | |
out vec4 outFragColor; |
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
[https://www.shadertoy.com/view/NtfcRr] - ShaderToy Link: This gist has some unsaved edits cause shader toy login was down | |
--------------------------------------------------------------------------------- | |
Common | |
--------------------------------------------------------------------------------- | |
// Path Tracer Settings | |
// The minimunm distance a ray must travel before we consider an intersection. | |
// This is to prevent a ray from intersecting a surface it just bounced off of. | |
const float c_minimumRayHitTime = 0.01f; | |
// the farthest we look for ray hits |
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
VITASDK = os.getenv("VITASDK") | |
if VITASDK ~= nil then | |
print("VITASDK found at : " .. VITASDK) | |
else | |
print("VITASDK Env variable not set, please check your environment settings") | |
end | |
-- define custom arm-vita-eabi toolchain for compilation and VPK creation | |
premake.tools.arm_gcc = {} |
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
#version 330 core | |
#extension GL_ARB_shading_language_include : require | |
out vec4 color; | |
uniform sampler2D renderTex; | |
uniform vec2 resolution; | |
uniform int toneMapMode; | |
//////////////////////////////////////////////////////////////////////////////// |
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
layout (location = 0) in vec3 VS_IN_Position; | |
layout (location = 1) in vec3 VS_IN_Normal; | |
const int MAX_BONES = 128; | |
layout (std140) uniform u_GlobalUBO | |
{ | |
mat4 view; | |
mat4 projection; | |
}; |
NewerOlder