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
# by chatgpt | |
import argparse | |
import os | |
from skimage import img_as_float | |
from skimage.metrics import structural_similarity as ssim | |
from PIL import Image | |
import numpy as np | |
import shutil |
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
#version 440 core | |
precision highp float; | |
#define LOCAL_BLOCKSIZE 32 | |
layout(local_size_x=LOCAL_BLOCKSIZE, local_size_y=LOCAL_BLOCKSIZE, local_size_z=1) in; | |
layout (binding = 0, rgba32f) uniform image2D imgIn; | |
layout (binding = 1, rgba32f) uniform image2D imgOut; |
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
static int OriginalStrBuf() | |
{ | |
static int idx = std::ios_base::xalloc(); | |
return idx; | |
} | |
std::unordered_map<std::streambuf*, std::shared_ptr<std::streambuf>> replacementStrBufs; |
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
#ifndef QuakeStyleConsole_h | |
#define QuakeStyleConsole_h | |
/// | |
/// QuakeStyleConsole.h | |
/// Created by VirtuosoChris on 8/19/20. | |
/// | |
/// This is the backend of a console interface for games, to help with debugging, cheats, etc | |
/// This is intended to be lightweight and efficient, rather than a general purpose scripting solution. | |
/// It is intended to perform two main functions: printing and setting variables as the game executes, and executing compiled C++ code from within the game. |
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
// | |
// ConsoleWidget.h | |
// | |
// Created by VirtuosoChris on 8/17/20. | |
// Forked from Example Console code in IMGUI samples | |
// https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp | |
#ifndef ConsoleWidget_h | |
#define ConsoleWidget_h | |
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
// | |
// RenderTargets.h | |
// | |
// | |
// Created by Chris Pugh on 2/2/16. | |
// | |
// | |
#ifndef RenderTargets_h | |
#define RenderTargets_h |
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
//#if !defined(TRANSFORMATIONS_H_INCLUDED) && !defined(VIRTUOSO_TRANSFORMATIONSLIB_IMPLEMENTATION) | |
#ifndef TRANSFORMATIONS_H_INCLUDED | |
#define TRANSFORMATIONS_H_INCLUDED | |
#include <Eigen/Eigen> | |
///\file These functions create transformation matrices using the Eigen library. What these particular transforms are and what their | |
/// arguments do should all hopefully be obvious. All angles are in radians and sane default arguments are provided where possible | |
///lookat() |
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
##### | |
##### By Christopher Pugh | |
##### Copyright 2015 Virtuoso Engine, LLC | |
##### Public domain or equivalent license | |
##### | |
##### Basic asset to header script | |
##### Pulls vertices, normals, single texture coord channel | |
##### Triangulates meshes, pulls multiple meshes, puts everything in arrays in a namespace | |
##### first argument is input mesh file | |
##### Second optional argument is namespace name |
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
#ifndef VIRTUOSO_TEXTURE_LOADER_H_INCLUDED | |
#define VIRTUOSO_TEXTURE_LOADER_H_INCLUDED | |
#if !defined(GL_ALT_API_NAME) | |
#error "Missing dependency : include a glalt header before including TextureLoader.h" | |
#endif | |
#if !defined(GL_HPP) | |
#error "Missing dependency : include opengl.hpp before including TextureLoader.h" | |
#endif |
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
#ifndef VIRTUOSO_GL_UTIL_H_INCLUDED | |
#define VIRTUOSO_GL_UTIL_H_INCLUDED | |
namespace Virtuoso | |
{ | |
namespace GL | |
{ | |
#ifdef GL_ALT_FUNDEF_CopyImageSubDataEXT | |
inline void copyMonoFrameToEyeBuffers(GLint monoTexture, GLint leftEyeTex, GLint rightEyeTex, GLint rtWidth, GLint rtHeight, unsigned int border=1, bool invalidateAfter=true) |
NewerOlder