This file contains hidden or 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
#pragma once | |
#include <typeinfo> | |
#include <functional> | |
using ReflectionInfo = struct { | |
const unsigned no; | |
const char* name; | |
const std::type_info& type_info; | |
const std::size_t size; |
This file contains hidden or 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Rendering.Universal; | |
using UnityEngine.Rendering; | |
/// <summary> | |
/// Render all meshes of a certain layer mask to a custom depth buffer | |
/// </summary> |
This file contains hidden or 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
// reference: https://gdbooks.gitbooks.io/3dcollisions/content/Chapter4/aabb-triangle.html | |
// https://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/tribox2.txt | |
#pragma once | |
#include <glm/glm.hpp> | |
namespace glm { | |
template<int I, typename T, qualifier Q> | |
inline __device__ __host__ glm::vec<I, T, Q> min(const glm::vec<I, T, Q>& v1, const glm::vec<I, T, Q>& v2, const glm::vec<I, T, Q>& v3) { | |
return glm::min(v1, glm::min(v2, v3)); |
This file contains hidden or 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
#pragma once | |
#include <string> | |
#include <map> | |
#include <unordered_map> | |
#include <memory> | |
#include <iostream> | |
#include <list> | |
#include <typeinfo> |
This file contains hidden or 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
// ==UserScript== | |
// @name 豆瓣读书增强 | |
// @namespace https://github.com/IwakuraRein/ | |
// @version 0.1 | |
// @description 给豆瓣读书的页面添加转到其他数据库和电子书库的链接 | |
// @author Iwakura Rein | |
// @match *://book.douban.com/subject/* | |
// @icon https://img3.doubanio.com/favicon.ico | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name 豆瓣页面添加IMDB链接 | |
// @namespace https://github.com/IwakuraRein/ | |
// @version 0.1 | |
// @description 给豆瓣电影的页面添加转到IMDB的链接 | |
// @author Iwakura Rein | |
// @match *://movie.douban.com/subject/* | |
// @icon https://img3.doubanio.com/favicon.ico | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |