Skip to content

Instantly share code, notes, and snippets.

diff -r peters2022_permutation_coding_supplemental/vulkan_code/CMakeLists.txt peters2022_permutation_coding_supplemental_win32/vulkan_code/CMakeLists.txt
32a33,46
>
>
> if(MSVC)
> target_link_libraries(blend_attributes PRIVATE Vulkan::Vulkan glfw)
>
>
> set_target_properties( blend_attributes
> PROPERTIES
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Listing 2-2, Load Shaders From DOM</title>
<meta charset="utf-8">
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec3 aVertexPosition;
void main() {
gl_Position = vec4(aVertexPosition, 1.0);
@Kuranes
Kuranes / SketchfabUpload.cs
Last active May 6, 2020 18:57
Sketchfab Upload using c# .net
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Test
@Kuranes
Kuranes / sketchab-libcurl-cpp
Last active August 29, 2015 14:01
simple https upload from c++ multi-plateform code using libcurl library
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
struct MemoryStruct {
char *memory;
size_t size;
};
@Kuranes
Kuranes / sketchab-cpp-libcurl
Last active June 11, 2023 16:54
simple https upload from c++ multi-plateform code using libcurl library
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
struct MemoryStruct {
char *memory;
size_t size;
};
@Kuranes
Kuranes / pbd_deferred_ycog
Created February 28, 2014 09:50
glsl pbr encode in ycog gbuffer for deffered
vec4 encodeGBuffer(const in gBufferComponents components, const in vec2 texCoords, const in vec2 resolution, const in float clipFar) {
vec4 res;
vec3 diffuseYcocg = rgbToYcocg(components.diffuse);
vec2 diffuseYc = getCheckerboard(texCoords, resolution) > 0.0 ? diffuseYcocg.xy : diffuseYcocg.xz;
diffuseYc.y += 0.5;
//Divide by clip far * 2.0 to sneak distance into a 0 to 1 range
float depth = components.depth / (clipFar*2.0);
//Scale normal from -1 to 1 to 0 to 1 range
vec3 normal = components.normal * 0.5 + 0.5;
<meta content="record, sounds, share, sound, audio, tracks, music, soundcloud" name="keywords" />
<meta content="Listen to Devon + AxL - Hotel Stoccarda by AxL: traccia dubstep, grazie per l'ascolto! | Create, record and share the sounds you create anywhere to friends, family and the world with SoundCloud, the world's largest community of sound creators." name="description" />
<link href="http://sandbox-soundcloud.com/axl" rel="author" />
<meta content="width=device-width" name="viewport" />
<meta content="chrome=1" name="X-UA-Compatible" />
<meta content="iframe" name="medium" />
<meta content="soundcloudplayer:sound" property="og:type" />
<meta content="player" property="twitter:card" />
<meta content="http://sandbox-soundcloud.com/axl/devon-axl-hotel-stoccarda" property="og:url" />
<meta content="Devon + AxL - Hotel Stoccarda" property="og:title" />
@Kuranes
Kuranes / ms_win_cpp_uploader.cpp
Last active December 29, 2015 02:19
simple upload from c++ code using microsoft windows WININET library, and code project http code simplification wrapper
#include "HTTP_client.h" //http://www.codeproject.com/Articles/3849/Simple-HTTP-Client-using-WININET
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
HTTP_client *pClient = new HTTP_client();
pClient->InitilizePostArguments();
// if using utf-8 characters in your Post Arguments
@Kuranes
Kuranes / gist:7428467
Created November 12, 2013 10:09
trace
traceroute: Warning: d1k5ny0m6d4zlj.cloudfront.net has multiple addresses; using 54.240.162.124
traceroute to d1k5ny0m6d4zlj.cloudfront.net (54.240.162.124), 64 hops max, 52 byte packets
1 192.168.0.254 (192.168.0.254) 0.606 ms 0.194 ms 0.242 ms
2 78.220.137.254 (78.220.137.254) 23.400 ms 22.660 ms 22.609 ms
3 213.228.9.254 (213.228.9.254) 25.517 ms 24.203 ms 24.854 ms
4 toulouse-9k-1-be1000.intf.routers.proxad.net (212.27.50.177) 25.117 ms 27.390 ms 27.647 ms
5 bzn-crs16-2-be1107.intf.routers.proxad.net (194.149.160.1) 36.196 ms 39.456 ms 39.813 ms
6 bzn-crs16-1-be1106.intf.routers.proxad.net (212.27.59.101) 35.317 ms 36.348 ms 35.935 ms
7 th2-crs16-1-be2000.intf.routers.proxad.net (212.27.57.209) 35.737 ms 35.499 ms 35.560 ms
8 strasbourg-crs16-1-be2000.intf.routers.proxad.net (212.27.50.10) 44.062 ms 46.282 ms 42.367 ms
<library_effects>
<effect id="Sphere_Material-fx" name="Sphere_Material">
<profile_COMMON>
<newparam sid="___images_Sphere_Material_-_Default_Texture_JPG-surface">
<surface type="2D">
<init_from>_._images_Sphere_Material_-_Default_Texture.JPG</init_from>
<format>A8R8G8B8</format>
</surface>
</newparam>
<newparam sid="___images_Sphere_Material_-_Default_Texture_JPG-sampler">