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
vec4 box = vec4(0.0, 0, 0.3, 0.3); | |
void mainImage( out vec4 fragColor, in vec2 fragCoord ) | |
{ | |
box.x += 0.05 * iTime; | |
box.y -= 0.03 * iTime; | |
// Normalized pixel coordinates (from 0 to 1) | |
vec2 uv = fragCoord/iResolution.xy; | |
vec2 looped = uv / box.zw; |
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
enum { | |
Body_Normal, | |
Body_Sensor = 1<<1, | |
}; | |
enum { | |
Shape_AABB, | |
Shape_Circle, | |
Shape_TriangleTL, |
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
set nocompatible | |
behave mswin | |
filetype plugin indent on | |
call plug#begin('C:/Vim/vimfiles/bundle') | |
Plug 'raymond-w-ko/vim-lua-indent' | |
Plug 'beyondmarc/hlsl.vim' | |
Plug 'William-Bundy/papercolor-theme' | |
Plug 'tomasr/molokai' | |
Plug 'vim-scripts/wombat' |
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
/**************************************** | |
* wb_gl_loader.h | |
* | |
* A single-header OpenGL loader, using | |
* Win32 or SDL as its backend. | |
* | |
* Can also create contexts for Win32 | |
* (because dealing with that yourself is terrible) | |
* | |
* Sample Usage: |
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
set nocompatible | |
behave mswin | |
filetype plugin indent on | |
call plug#begin('C:/Vim/vimfiles/bundle') | |
Plug 'raymond-w-ko/vim-lua-indent' | |
Plug 'tomasr/molokai' | |
Plug 'vim-scripts/wombat' | |
Plug 'tpope/vim-surround' | |
Plug 'ctrlpvim/ctrlp.vim' |
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
typedef __m128 vf128; | |
WBTM_API vf128 wb_atan_ps(vf128 xx) | |
{ | |
vf128 mask, mask2, y = ppf(0); | |
vf128 one = ppf(1.0f); | |
vf128 signs = _mm_and_ps(xx, pfi(0x80000000)); | |
vf128 x = _mm_and_ps(xx, pfi(~0x80000000)); | |
{ | |
vf128 tx1, tx2; |
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
/* Graphics */ | |
#define Shader_MaxAttribs 16 | |
#define Shader_MaxUniforms 16 | |
struct wShaderComponent | |
{ | |
string name; | |
i32 loc, divisor; |
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
rem Windows Batch is bad. | |
@echo off | |
rem Save line space | |
set msvcdir="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\" | |
rem get compiler in our current path | |
if not defined DevEnvDir call %msvcdir%vcvars64.bat >nul |
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
/* This is free and unencumbered software released into the public domain. */ | |
/* Check the bottom of this file for the remainder of the unlicense */ | |
/* wb_alloc.h | |
* | |
* Three custom allocators that can (hopefully) safely allocate a very large | |
* amount of memory for you. Check the warnings below for an explanation | |
* | |
* Version 0.0.1 Testing Alpha | |
*/ |
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
set nocompatible | |
behave mswin | |
filetype plugin indent on | |
call plug#begin('C:/Vim/vimfiles/bundle') | |
Plug 'raymond-w-ko/vim-lua-indent' | |
Plug 'tomasr/molokai' | |
Plug 'tpope/vim-surround' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'craigemery/vim-autotag' |
NewerOlder