Compare commits

...

2 commits

Author SHA1 Message Date
aa610035b1 cleanup quine and add link to source 2024-08-11 14:20:04 +02:00
b75d0be0a7 reduce raymarching quality on some props 2024-08-11 13:44:40 +02:00
9 changed files with 43 additions and 52 deletions

View file

@ -143,7 +143,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!114 &34125274
MonoBehaviour:
m_ObjectHideFlags: 0
@ -158,7 +158,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
type: 3
objectId: 94d9cfa6-b350-4290-abeb-7b1692bf2c6e
randomNum: 60695246
randomNum: 60249930
unityVersion: 2021.3.41f1
cckVersion: 3.10:132
--- !u!114 &34125275
@ -1007,7 +1007,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
type: 3
objectId: dfb56a47-2b0b-4814-a4b0-950b5054b182
randomNum: 95618923
randomNum: 76182449
unityVersion: 2021.3.41f1
cckVersion: 3.10:132
--- !u!114 &649783671
@ -1756,7 +1756,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!114 &853608960
MonoBehaviour:
m_ObjectHideFlags: 0
@ -1771,7 +1771,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
type: 3
objectId: e51ea4c1-d42c-4790-91a1-78d2bf6fef59
randomNum: 42815474
randomNum: 21526925
unityVersion: 2021.3.41f1
cckVersion: 3.10:132
--- !u!114 &853608961
@ -3250,7 +3250,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!114 &2089314930
MonoBehaviour:
m_ObjectHideFlags: 0
@ -3265,7 +3265,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
type: 3
objectId: 4e7f3dcf-e925-473a-89e2-dfe6cfe7eac5
randomNum: 67221367
randomNum: 62949192
unityVersion: 2021.3.41f1
cckVersion: 3.10:132
--- !u!114 &2089314931

View file

@ -57,7 +57,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints:
- _MaxSteps: 128
- _MaxSteps: 100
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5

View file

@ -13,9 +13,9 @@ Shader "CrispyPin/FleshCube2"
#pragma vertex vert
#pragma fragment frag
#define MAX_STEPS 128
#define MAX_STEPS 100
#define MAX_DIST 128
#define SURF_DIST 0.01
#define SURF_DIST 0.025
#define SCENE_FN main
#define SCENE_SCALE 0.04

View file

@ -57,7 +57,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints:
- _MaxSteps: 128
- _MaxSteps: 32
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
@ -75,7 +75,7 @@ Material:
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SurfDist: 0.001
- _SurfDist: 0.02
- _UVSec: 0
- _ZWrite: 1
m_Colors:

View file

@ -13,8 +13,8 @@ Shader "CrispyPin/Loops"
#pragma vertex vert
#pragma fragment frag
#define MAX_STEPS 128
#define MAX_DIST 128
#define MAX_STEPS 64
#define MAX_DIST 256
#define SURF_DIST 0.01
#define SCENE_FN main

View file

@ -1472,7 +1472,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
type: 3
objectId: 9fee86b2-a9bd-46a3-a364-5f94506c4253
randomNum: 95403234
randomNum: 50966792
unityVersion: 2021.3.41f1
cckVersion: 3.10:132
--- !u!114 &2046637845

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -8,7 +8,6 @@ use image::{GenericImageView, ImageReader};
const FULL_CHARSET: &[u8] = b" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\n\t";
fn main() {
const A:u8 = FULL_CHARSET[64];
// source code conversion
let source_text = read_to_string("../Assets/test/quine.shader").unwrap();
let mut encoded_text: Vec<u32> = Vec::new();