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 420 core | |
| uniform float fGlobalTime; // in seconds | |
| uniform vec2 v2Resolution; // viewport resolution (in pixels) | |
| uniform float fFrameTime; // duration of the last frame, in seconds | |
| uniform sampler1D texFFT; // towards 0.0 is bass / lower freq, towards 1.0 is higher / treble freq | |
| uniform sampler1D texFFTSmoothed; // this one has longer falloff and less harsh transients | |
| uniform sampler1D texFFTIntegrated; // this is continually increasing | |
| uniform sampler2D texPreviousFrame; // screenshot of the previous frame |
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
| export LIBGL_ALWAYS_INDIRECT=1 | |
| export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0 | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| export PATH=$PATH:~/bin |
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
| ;;; init.el --- My init.el -*- lexical-binding: t; -*- | |
| (eval-and-compile | |
| (when (or load-file-name byte-compile-current-file) | |
| (setq user-emacs-directory | |
| (expand-file-name | |
| (file-name-directory (or load-file-name byte-compile-current-file)))))) | |
| (eval-and-compile | |
| (customize-set-variable |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <quiz> | |
| <!-- question: 1 --> | |
| <question type="stack"> | |
| <name> | |
| <text>test</text> | |
| </name> | |
| <questiontext format="html"> | |
| <text><![CDATA[<p></p> | |
| <p>次の微分をせよ.</p> |
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
| #!/bin/sh | |
| echo 'cloning......' | |
| git clone [email protected]:appleseedhq/prebuilt-linux-deps.git | |
| git clone [email protected]:appleseedhq/appleseed.git | |
| echo 'Done' | |
| export APPLESEED_INSTALL_DIR=$PWD/appleseed-dist | |
| export APPLESEED_ROOT=$PWD/appleseed | |
| export APPLESEED_DEPENDENCIES=$PWD/prebuilt-linux-deps |
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
| float3 origin = float3(-2, -2, -2); | |
| float3 n = float3(2, 2, 2); | |
| float3 s = float3(0.01, 0.01, 0.01); | |
| int3 dim = int3(int((n.x() - origin.x()) / s.x()), | |
| int((n.y() - origin.y()) / s.y()), | |
| int((n.z() - origin.z()) / s.z())); | |
| int numPoints = dim.x() * dim.y() * dim.z(); | |
| std::vector<int> invNums; | |
| invNums.resize(numPoints); |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <cmath> | |
| #include "nanort.h" | |
| typedef nanort::real3<int> int3; | |
| typedef nanort::real3<float> float3; | |
| typedef nanort::real3<double> double3; |
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
| analytic | |
| # glTF 2.0 PBR Materials | |
| # metallic-roughness | |
| # Reference: | |
| # glTF Specification, 2.0 | |
| # https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#metallic-roughness-material | |
| # glTF 2.0: PBR Materials by Saurabh Bhatia. May 2017 | |
| # https://www.khronos.org/assets/uploads/developers/library/2017-gtc/glTF-2.0-and-PBR-GTC_May17.pdf | |
| # glTF-WebGL-PBR |
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
| digraph graph_name { | |
| ranksep=1.5; | |
| graph [ | |
| charset = "UTF-8"; | |
| layout = twopi | |
| ]; | |
| node [ | |
| fixedsize = true, |
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
| SUBSYSTEM=="usb", ATTR{idVendor}=="054c", MODE="0666", GROUP="plugdev" | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="plugdev" | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" |
NewerOlder