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
public class A<T> where T :A<T>{ | |
protected T t; | |
public T funcA(){ | |
return t; | |
} | |
} | |
public class A:A<A>{ | |
private A(){ |
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
#define sectorize(value) step(0.0, (value))*2.0-1.0 | |
#define sum(value) dot(clamp((value), 1.0, 1.0), (value)) | |
#define PI 3.141592653589793 | |
vec2 normalToUvRectOct(vec3 normal){ | |
normal /= sum(abs(normal)); | |
if(normal.y > 0.0){ | |
return normal.xz*0.5+0.5; | |
} | |
else{ |
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
#!/usr/bin/env bash | |
# | |
# .git/hooks/pre-commit | |
# Prevent committing non–UTF‑8 files, but only for certain extensions | |
set -e # exit on any error | |
# Define which file extensions to check (without the leading dot) | |
EXTENSIONS=(cs) |
OlderNewer