summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-11-04 17:26:46 -0800
committeryum <yum.food.vr@gmail.com>2025-11-04 17:26:46 -0800
commitc9324a804c15cf3db403833e67935762eb45cb80 (patch)
treeeed670156a998d79958f10caf2833cc8ddb0a5c9 /3ner.cginc
parent27c7851bf08aaee87eb348010737c34b5698adaa (diff)
add ray march instancing (copies) with row offsets
instancing uses real evaluated copies of the mesh instead of domain repetition. useful for hiding artifacts as an alternative to quilez's corrective term, which generally converges more slowly.
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/3ner.cginc b/3ner.cginc
index d5f380f..e45e0cd 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -111,9 +111,9 @@ tess_factors patch_constant(InputPatch<v2f, 3> patch) {
// Scale tessellation by screen-space edge length and falloff factor
float k = _Tessellation_Falloff_Factor;
- f.edge[2] = min(_Tessellation_Factor, k * edge01);
f.edge[0] = min(_Tessellation_Factor, k * edge12);
f.edge[1] = min(_Tessellation_Factor, k * edge20);
+ f.edge[2] = min(_Tessellation_Factor, k * edge01);
f.inside = (f.edge[0] + f.edge[1] + f.edge[2]) * 0.333333f;