mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 04:29:05 +00:00
Stream support
This commit is contained in:
@@ -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