released on steam, adding genedrive

This commit is contained in:
ntr committed 2022-06-03 15:04:50 +10:00
1 parent d36158bc48
commit 373baed62b
42 files changed
+5905 -318

No files matched your search

+6 -2
View File
@@ -142,7 +142,7 @@ Material:
- _AlphaToMaskInspectorValue: 0
- _Anisotropy: 0
- _BlendMode: 0
- _Brightness: 3.85
- _Brightness: 0
- _CoatMask: 0
- _CullMode: 2
- _CullModeForward: 2
@@ -168,6 +168,8 @@ Material:
- _EnableFogOnTransparent: 1
- _EnableGeometricSpecularAA: 0
- _EnergyConservingSpecularColor: 1
- _Glob: 1.2242857
- _Grid: 5.450001
- _HeightAmplitude: 0.02
- _HeightCenter: 0.5
- _HeightMapParametrization: 0
@@ -181,6 +183,7 @@ Material:
- _Ior: 1.5
- _IridescenceMask: 1
- _IridescenceThickness: 1
- _Iterations: 8
- _LinkDetailsWithBase: 1
- _Magic: 65.6
- _MaterialID: 1
@@ -199,6 +202,7 @@ Material:
- _ReceivesSSR: 1
- _ReceivesSSRTransparent: 0
- _RefractionModel: 0
- _Resonance: 0.24285714
- _Smoothness: 0.5
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
@@ -235,7 +239,7 @@ Material:
- _UVEmissive: 0
- _UseEmissiveIntensity: 0
- _UseShadowThreshold: 0
- _Wildness: 0.593
- _Wildness: 0.2
- _Wow: 4
- _ZTestDepthEqualForOpaque: 3
- _ZTestGBuffer: 4
+18 -14
View File
@@ -6,9 +6,9 @@ Shader "FullScreen/Botany"
_ThemeTexture("ThemeTexture", 2D) = "white" {}
_SpectrumSize("SpectrumSize", float) = 16
_Zoom("Zoom", range(1, 10)) = 5
_Wildness("Wildness", range(0.2, 2.0)) = 0.8
_Brightness("Brightness", range(1, 10)) = 4.0
_Grid("Grid", range(3, 10)) = 5
_Iterations("Iterations", range(1, 10)) = 6
_Resonance("Resonance", range(0, 3)) = 1
}
HLSLINCLUDE
@@ -22,9 +22,10 @@ Shader "FullScreen/Botany"
// here we go...
sampler2D _SpectrumTexture;
sampler2D _ThemeTexture;
float _Zoom;
float _Wildness;
float _Brightness;
float _Resonance;
float _Grid;
float _Iterations;
float material;
float time;
@@ -50,7 +51,7 @@ Shader "FullScreen/Botany"
// Inigo Quilez
// https://iquilezles.org/articles/distfunctions
float smin(float d1, float d2, float k) {
float h = clamp(0.5 + bass * (d2-d1) / k, 0.0, 1.0);
float h = clamp(0.5 + 0.5 * (d2-d1) / k, 0.0, 1.0);
return lerp(d2, d1, h) - k*h*(1.0-h);
}
@@ -74,7 +75,7 @@ Shader "FullScreen/Botany"
float t = time * 1.0 + rng * 2.9;
// domain repetition
float3 grid = float3(_Zoom, _Zoom, _Zoom);
float3 grid = float3(_Grid, _Grid, _Grid);
float3 cell = floor(p/grid);
p = repeat(p, grid);
@@ -88,18 +89,17 @@ Shader "FullScreen/Botany"
float size = sin(rng*3.14);
// stretch sphere
float wave = sin(-dp*1.+t+hash13(cell)*6.28)*.5;
// float wave = sin(-dp*1.+t+hash13(cell)*6.28)*.5;
float wave = sin(-dp*_Resonance+t+hash13(cell)*6.28);
// kaleidoscopic iterated function
const int count = 4;
// float a = 1.0;
float a = 2.0;
float scene = 1000.0;
float shape = 1000.0;
for (int index = 0; index < count; ++index) {
for (int index = 0; index < _Iterations; ++index) {
// fold and translate
p.xz = abs(p.xz) - (_Wildness + wave) * a;
// p.xz = abs(p.xz) - (0.5 + wave) * a;
// p.xz = abs(p.xz) - (_Iterations + wave) * a;
p.xz = abs(p.xz) - (0.5 + wave) * a;
// rotate
// p.xz = mul(rot(angle.y/a), p.xz);
@@ -205,6 +205,10 @@ Shader "FullScreen/Botany"
// pixel color
colour.rgb = (tint + light) * shade;
// camera fade
colour = colour * step(3.0, length(pos));
// temporal buffer
// colour = max(colour, texture(iChannel0, fragCoord/iResolution.xy) - 0.01);
+6 -6
View File
@@ -12,15 +12,15 @@ public class BotanyBinder : MonoBehaviour {
}
}
public void UpdateWildness(Slider s) {
material.SetFloat("_Wildness", s.value);
public void UpdateIterations(Slider s) {
material.SetFloat("_Iterations", s.value);
}
public void UpdateZoom(Slider s) {
material.SetFloat("_Zoom", s.value);
public void UpdateGrid(Slider s) {
material.SetFloat("_Grid", s.value);
}
public void UpdateBrightness(Slider s) {
material.SetFloat("_Brightness", s.value);
public void UpdateResonance(Slider s) {
material.SetFloat("_Resonance", s.value);
}
}