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
# maximum base - 36 | |
def dec_to_base(a, b): | |
sym='0123456789abcdefghijklmnopqrstuvwxyz' | |
s='' | |
while a > 0: | |
s += sym[a%b] | |
a//=b | |
s=s[::-1] | |
return s |
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
using System.Linq; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Rendering.Universal; | |
#if UNITY_EDITOR |
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
using UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public class FullscreenShaderFeature : ScriptableRendererFeature | |
{ | |
[SerializeField] | |
private Material material; | |
class CustomRenderPass : ScriptableRenderPass |
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<fstream> | |
#include<algorithm> | |
#include<string> | |
#include<glad/glad.h> | |
#include<GLFW/glfw3.h> | |
// Example: GLuint program = loadShader("src/shaders/vertexShader.vert", "src/shaders/fragmentShader.frag"); | |
GLuint loadShader(const char* vertex_path, const char* fragment_path) { // Returns OpenGL shaderProgram |