Package org.sunflow.core
Class ShadingCache
- java.lang.Object
-
- org.sunflow.core.ShadingCache
-
public class ShadingCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ShadingCache.Sample
-
Constructor Summary
Constructors Constructor Description ShadingCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ShadingState state, Shader shader, Color c)
Color
lookup(ShadingState state, Shader shader)
void
reset()
-
-
-
Field Detail
-
first
private ShadingCache.Sample first
-
depth
private int depth
-
hits
long hits
-
misses
long misses
-
sumDepth
long sumDepth
-
numCaches
long numCaches
-
-
Method Detail
-
reset
public void reset()
-
lookup
public Color lookup(ShadingState state, Shader shader)
-
add
public void add(ShadingState state, Shader shader, Color c)
-
-