Sha256: 06663ccfe8ff93047c8ad800dfabaa04e30b4c71121bb27ece4e27eca5aa2768
Contents?: true
Size: 671 Bytes
Versions: 6
Compression:
Stored size: 671 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 ViewIrradianceShader implements Shader { @Override public boolean update(ParameterList pl, SunflowAPI api) { return true; } @Override public Color getRadiance(ShadingState state) { state.faceforward(); return new Color().set(state.getIrradiance(Color.WHITE)).mul(1.0f / (float) Math.PI); } @Override public void scatterPhoton(ShadingState state, Color power) { } }
Version data entries
6 entries across 6 versions & 1 rubygems