Sha256: bab39da388e13d9622aa56f16cc5a082e9897bcc26cf1a18be6d6a0bd13e0d87
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 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 SimpleShader implements Shader { @Override public boolean update(ParameterList pl, SunflowAPI api) { return true; } @Override public Color getRadiance(ShadingState state) { return new Color(Math.abs(state.getRay().dot(state.getNormal()))); } @Override public void scatterPhoton(ShadingState state, Color power) { } }
Version data entries
6 entries across 6 versions & 1 rubygems