Sha256: d8434ee4fc66ccd8beab26016f817e726f3484e33410c7c91b1e4621e60a81ca
Contents?: true
Size: 687 Bytes
Versions: 6
Compression:
Stored size: 687 Bytes
Contents
package org.sunflow.core.shader; import org.sunflow.SunflowAPI; import org.sunflow.core.ParameterList; import org.sunflow.core.Shader; import org.sunflow.core.ShadingState; import org.sunflow.image.Color; public class ConstantShader implements Shader { private Color c; public ConstantShader() { c = Color.WHITE; } @Override public boolean update(ParameterList pl, SunflowAPI api) { c = pl.getColor("color", c); return true; } @Override public Color getRadiance(ShadingState state) { return c; } @Override public void scatterPhoton(ShadingState state, Color power) { } }
Version data entries
6 entries across 6 versions & 1 rubygems