public Layer(string name, int size, float damping, ErosionSim link, float overwriteFluidity, float fluidity) { main = new DoubleDataTexture(name, size, RenderTextureFormat.ARGBFloat, FilterMode.Point); // was RFloat main.ClearColor(); outFlow = new DoubleDataTexture(name, size, RenderTextureFormat.ARGBFloat, FilterMode.Point); //was ARGBHalf outFlow.ClearColor(); this.damping = damping; this.link = link; this.size = size; this.overwriteFluidity = overwriteFluidity; this.fluidity = fluidity; }
public LayerWithErosion(string name, int size, float viscosity, ErosionSim link) : base(name, size, viscosity, link) { //waterField = new DoubleDataTexture("Water Field", TEX_SIZE, RenderTextureFormat.RFloat, FilterMode.Point); //waterOutFlow = new DoubleDataTexture("Water outflow", TEX_SIZE, RenderTextureFormat.ARGBHalf, FilterMode.Point); sedimentField = new DoubleDataTexture("Sediment Field", size, RenderTextureFormat.ARGBFloat, FilterMode.Bilinear); // was RHalf sedimentField.ClearColor(); advectSediment = new DoubleDataTexture("Sediment Advection", size, RenderTextureFormat.RHalf, FilterMode.Bilinear); // was RHalf advectSediment.ClearColor(); sedimentDeposition = new DoubleDataTexture("Sediment Deposition", size, RenderTextureFormat.ARGBFloat, FilterMode.Point); // was RHalf sedimentDeposition.ClearColor(); tiltAngle = DoubleDataTexture.Create("Tilt Angle", size, RenderTextureFormat.RHalf, FilterMode.Point);// was RHalf //sedimentOutFlow = DoubleDataTexture.Create("sedimentOutFlow", size, RenderTextureFormat.ARGBHalf, FilterMode.Point);// was ARGBHalf //sedimentOutFlow.ClearColor(); }
public LayerWithVelocity(string name, int size, float viscosity, ErosionSim link) : base(name, size, viscosity, link, 0.96f, 4181f, 1f, 1f) { velocity = new DoubleDataTexture("Water Velocity", size, RenderTextureFormat.ARGBFloat, FilterMode.Bilinear);// was RGHalf velocity.ClearColor(); }
public LayerWithTemperature(string name, int size, float damping, ErosionSim link, float emissivity , float heatCapacity, float overwriteFluidity, float fluidity) : base(name, size, damping, link, overwriteFluidity, fluidity) { this.emissivity = Mathf.Clamp01(emissivity); this.heatCapacity = heatCapacity; }