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
#pragma once | |
#include <stdint.h> | |
#include <string.h> | |
#define WAVELET_DIM 512 | |
extern void wavelet_forward_2d(uint8_t *mat, size_t N); | |
extern void wavelet_inverse_2d(uint8_t *mat, size_t N); |
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
// http://bearcave.com/misl/misl_tech/wavelets/index.html | |
class WaveletBase { | |
constructor() { | |
this.forward = 1; | |
this.inverse = 2; | |
} | |
split(vec, N) { | |
var half = N >> 1; | |
var vc = vec.slice(); |
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
Shader "CustomPBRShader" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] _Albedo("Albedo", Color) = (1.0, 1.0, 1.0, 1.0) | |
[NoScaleOffset] _Metalness("Conductivity", Range(0.0, 1.0)) = 0.0 | |
[NoScaleOffset] _Roughness("Roughness", Range(0.0, 1.0)) = 0.0 | |
[NoScaleOffset][HDR] _RadianceMap("RadianceMap", CUBE) = "" {} | |
[NoScaleOffset][HDR] _IrradianceMap("IrradianceMap", CUBE) = "" {} | |
} |
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
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy as np | |
np.random.seed(7) | |
NUM_DIGITS = 12 | |
def binary_encode(i, num_digits): | |
return np.array([i >> d & 1 for d in range(num_digits)]) |