port flesh cube to libgarbage, update bocs, create glitch sphere
This commit is contained in:
parent
e3bf2e7770
commit
59f8cdd8dd
12 changed files with 782 additions and 67 deletions
|
@ -104,7 +104,7 @@ struct Material {
|
|||
};
|
||||
|
||||
#define DEFAULT_MAT {float3(1, 1, 1), 0}
|
||||
Material mat(float3 col = float3(1, 1,1 ), float gloss = 0) {
|
||||
Material mat(float3 col = float3(1, 1, 1), float gloss = 0) {
|
||||
Material m;
|
||||
m.col = col;
|
||||
m.gloss = gloss;
|
||||
|
@ -113,6 +113,9 @@ Material mat(float3 col = float3(1, 1,1 ), float gloss = 0) {
|
|||
Material mat(float r, float g, float b) {
|
||||
return mat(float3(r, g, b));
|
||||
}
|
||||
Material mat(float r, float g, float b, float gloss) {
|
||||
return mat(float3(r, g, b), gloss);
|
||||
}
|
||||
|
||||
struct SurfacePoint {
|
||||
float dist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue