mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-22 16:17:44 +00:00
Stream support
This commit is contained in:
1 parent
87cce116af
commit
5d3faba762
3 files changed
+25
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.volmit.iris.object;
|
||||
|
||||
import com.volmit.iris.gen.v2.scaffold.layer.ProceduralStream;
|
||||
import com.volmit.iris.noise.CNG;
|
||||
import com.volmit.iris.noise.CNGFactory;
|
||||
import com.volmit.iris.noise.NoiseType;
|
||||
@@ -408,6 +409,16 @@ public enum NoiseStyle
|
||||
this.f = f;
|
||||
}
|
||||
|
||||
public ProceduralStream<Double> stream(RNG seed)
|
||||
{
|
||||
return create(seed).stream();
|
||||
}
|
||||
|
||||
public ProceduralStream<Double> stream(long seed)
|
||||
{
|
||||
return create(new RNG(seed)).stream();
|
||||
}
|
||||
|
||||
public CNG create(RNG seed)
|
||||
{
|
||||
return f.create(seed).bake();
|
||||
|
||||
Reference in new issue
Block a user