Sha256: 5ede797348e7598d2bb91720a8c561c13ca5a7f22753562c4e11bf99964b960e
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 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 UVShader implements Shader { @Override public boolean update(ParameterList pl, SunflowAPI api) { return true; } @Override public Color getRadiance(ShadingState state) { if (state.getUV() == null) { return Color.BLACK; } return new Color(state.getUV().x, state.getUV().y, 0); } @Override public void scatterPhoton(ShadingState state, Color power) { } }
Version data entries
6 entries across 6 versions & 1 rubygems