Skip to content

Instantly share code, notes, and snippets.

@Ohmnivore
Ohmnivore / privacy_policy.txt
Created January 10, 2024 01:48
Privacy Policy
This application does not collect or store personal data.
If you installed this application from Google Play, then Google Play does collect some personal data. Please see the privacy policy for Google Play Services here: https://policies.google.com/privacy
Shader "Ohmnivore/Heightmap"
{
Properties
{
}
SubShader
{
Tags { "RenderType"="Opaque" }
@Ohmnivore
Ohmnivore / IsFullScreen.ini
Last active September 23, 2020 21:41
Holy Wallpaper Batman!
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Metadata]
Name=IsFullScreen
Author=JSMorley
Version=3.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
@Ohmnivore
Ohmnivore / STBTextureLoader.cc
Last active September 20, 2018 03:45
stb_image.h (.png, .jpg, etc) loader for oryol
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#define STBI_NO_STDIO
#define STBI_NO_FAILURE_STRINGS
#include "stb/stb_image.h"
#include "IO/IO.h"
#include "Gfx/Gfx.h"
#include "Gfx/private/gfxResourceContainer.h"
@Ohmnivore
Ohmnivore / oryol_wasm_guide.md
Last active September 12, 2018 19:05
Trials and tribulations (oryol + WASM)

Compiling

In fips/cmake-toolchains/emscripten.toolchain.cmake:

  • Change set(FIPS_EMSCRIPTEN_SDK_VERSION "incoming") for version (found in fips-sdks/win/emsdk-portable/emscripten)
  • Change option(FIPS_EMSCRIPTEN_ALLOW_MEMORY_GROWTH "emscripten: allow memory growth" OFF) to ON

The clang compiler will be less permissive than default msvc. Expect to fix some new compilation errors.

Watch out for implementation-specific features like strtok.

@Ohmnivore
Ohmnivore / mainVS.glsl
Created August 26, 2018 16:06
oryol uniform layout generation
#version 330
#ifdef GL_ARB_shading_language_420pack
#extension GL_ARB_shading_language_420pack : require
#endif
uniform vec4 params[6];
layout(location = 0) in vec4 position;
out vec2 uv;
layout(location = 2) in vec2 texcoord0;
@Ohmnivore
Ohmnivore / arcane_android_incantations.md
Last active February 5, 2018 22:19
Arcane Android incantations to summon an ancient lime Daemon build
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Fast-Paced Multiplayer Implementation: Smooth Client-Side Movement</title>
</head>
<body>
package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.input.mouse.FlxMouseEventManager;
import flixel.math.FlxPoint;
import flixel.tweens.FlxTween;
/**
* ...
* @author Nightlyside