Compare commits
2 commits
6f07643431
...
aa610035b1
Author | SHA1 | Date | |
---|---|---|---|
aa610035b1 | |||
b75d0be0a7 |
9 changed files with 43 additions and 52 deletions
|
@ -143,7 +143,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!114 &34125274
|
--- !u!114 &34125274
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -158,7 +158,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 3
|
type: 3
|
||||||
objectId: 94d9cfa6-b350-4290-abeb-7b1692bf2c6e
|
objectId: 94d9cfa6-b350-4290-abeb-7b1692bf2c6e
|
||||||
randomNum: 60695246
|
randomNum: 60249930
|
||||||
unityVersion: 2021.3.41f1
|
unityVersion: 2021.3.41f1
|
||||||
cckVersion: 3.10:132
|
cckVersion: 3.10:132
|
||||||
--- !u!114 &34125275
|
--- !u!114 &34125275
|
||||||
|
@ -1007,7 +1007,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 3
|
type: 3
|
||||||
objectId: dfb56a47-2b0b-4814-a4b0-950b5054b182
|
objectId: dfb56a47-2b0b-4814-a4b0-950b5054b182
|
||||||
randomNum: 95618923
|
randomNum: 76182449
|
||||||
unityVersion: 2021.3.41f1
|
unityVersion: 2021.3.41f1
|
||||||
cckVersion: 3.10:132
|
cckVersion: 3.10:132
|
||||||
--- !u!114 &649783671
|
--- !u!114 &649783671
|
||||||
|
@ -1756,7 +1756,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!114 &853608960
|
--- !u!114 &853608960
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1771,7 +1771,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 3
|
type: 3
|
||||||
objectId: e51ea4c1-d42c-4790-91a1-78d2bf6fef59
|
objectId: e51ea4c1-d42c-4790-91a1-78d2bf6fef59
|
||||||
randomNum: 42815474
|
randomNum: 21526925
|
||||||
unityVersion: 2021.3.41f1
|
unityVersion: 2021.3.41f1
|
||||||
cckVersion: 3.10:132
|
cckVersion: 3.10:132
|
||||||
--- !u!114 &853608961
|
--- !u!114 &853608961
|
||||||
|
@ -3250,7 +3250,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!114 &2089314930
|
--- !u!114 &2089314930
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -3265,7 +3265,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 3
|
type: 3
|
||||||
objectId: 4e7f3dcf-e925-473a-89e2-dfe6cfe7eac5
|
objectId: 4e7f3dcf-e925-473a-89e2-dfe6cfe7eac5
|
||||||
randomNum: 67221367
|
randomNum: 62949192
|
||||||
unityVersion: 2021.3.41f1
|
unityVersion: 2021.3.41f1
|
||||||
cckVersion: 3.10:132
|
cckVersion: 3.10:132
|
||||||
--- !u!114 &2089314931
|
--- !u!114 &2089314931
|
||||||
|
|
|
@ -57,7 +57,7 @@ Material:
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
m_Ints:
|
m_Ints:
|
||||||
- _MaxSteps: 128
|
- _MaxSteps: 100
|
||||||
m_Floats:
|
m_Floats:
|
||||||
- _BumpScale: 1
|
- _BumpScale: 1
|
||||||
- _Cutoff: 0.5
|
- _Cutoff: 0.5
|
||||||
|
|
|
@ -13,9 +13,9 @@ Shader "CrispyPin/FleshCube2"
|
||||||
#pragma vertex vert
|
#pragma vertex vert
|
||||||
#pragma fragment frag
|
#pragma fragment frag
|
||||||
|
|
||||||
#define MAX_STEPS 128
|
#define MAX_STEPS 100
|
||||||
#define MAX_DIST 128
|
#define MAX_DIST 128
|
||||||
#define SURF_DIST 0.01
|
#define SURF_DIST 0.025
|
||||||
|
|
||||||
#define SCENE_FN main
|
#define SCENE_FN main
|
||||||
#define SCENE_SCALE 0.04
|
#define SCENE_SCALE 0.04
|
||||||
|
|
|
@ -57,7 +57,7 @@ Material:
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
m_Ints:
|
m_Ints:
|
||||||
- _MaxSteps: 128
|
- _MaxSteps: 32
|
||||||
m_Floats:
|
m_Floats:
|
||||||
- _BumpScale: 1
|
- _BumpScale: 1
|
||||||
- _Cutoff: 0.5
|
- _Cutoff: 0.5
|
||||||
|
@ -75,7 +75,7 @@ Material:
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SpecularHighlights: 1
|
- _SpecularHighlights: 1
|
||||||
- _SrcBlend: 1
|
- _SrcBlend: 1
|
||||||
- _SurfDist: 0.001
|
- _SurfDist: 0.02
|
||||||
- _UVSec: 0
|
- _UVSec: 0
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
|
|
|
@ -13,8 +13,8 @@ Shader "CrispyPin/Loops"
|
||||||
#pragma vertex vert
|
#pragma vertex vert
|
||||||
#pragma fragment frag
|
#pragma fragment frag
|
||||||
|
|
||||||
#define MAX_STEPS 128
|
#define MAX_STEPS 64
|
||||||
#define MAX_DIST 128
|
#define MAX_DIST 256
|
||||||
#define SURF_DIST 0.01
|
#define SURF_DIST 0.01
|
||||||
|
|
||||||
#define SCENE_FN main
|
#define SCENE_FN main
|
||||||
|
|
|
@ -1472,7 +1472,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 3
|
type: 3
|
||||||
objectId: 9fee86b2-a9bd-46a3-a364-5f94506c4253
|
objectId: 9fee86b2-a9bd-46a3-a364-5f94506c4253
|
||||||
randomNum: 95403234
|
randomNum: 50966792
|
||||||
unityVersion: 2021.3.41f1
|
unityVersion: 2021.3.41f1
|
||||||
cckVersion: 3.10:132
|
cckVersion: 3.10:132
|
||||||
--- !u!114 &2046637845
|
--- !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
|
@ -8,7 +8,6 @@ use image::{GenericImageView, ImageReader};
|
||||||
const FULL_CHARSET: &[u8] = b" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\n\t";
|
const FULL_CHARSET: &[u8] = b" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\n\t";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
const A:u8 = FULL_CHARSET[64];
|
|
||||||
// source code conversion
|
// source code conversion
|
||||||
let source_text = read_to_string("../Assets/test/quine.shader").unwrap();
|
let source_text = read_to_string("../Assets/test/quine.shader").unwrap();
|
||||||
let mut encoded_text: Vec<u32> = Vec::new();
|
let mut encoded_text: Vec<u32> = Vec::new();
|
||||||
|
|
Loading…
Reference in a new issue