Uses of Class
org.sunflow.core.ShadingState
-
-
Uses of ShadingState in org.sunflow.core
Methods in org.sunflow.core that return ShadingState Modifier and Type Method Description (package private) static ShadingState
ShadingState. createDiffuseBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createFinalGatherState(ShadingState state, Ray r, int i)
(package private) static ShadingState
ShadingState. createGlossyBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createPhotonState(Ray r, IntersectionState istate, int i, PhotonStore map, LightServer server)
(package private) static ShadingState
ShadingState. createReflectionBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createRefractionBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createShadowState(ShadingState previous, Ray r)
(package private) static ShadingState
ShadingState. createState(IntersectionState istate, float rx, float ry, float time, Ray r, int i, int d, LightServer server)
(package private) ShadingState
LightServer. getRadiance(float rx, float ry, float time, int i, int d, Ray r, IntersectionState istate, ShadingCache cache)
ShadingState
Scene. getRadiance(IntersectionState istate, float rx, float ry, double lensU, double lensV, double time, int instance, int dim, ShadingCache cache)
Get the radiance seen through a particular pixel(package private) ShadingState
LightServer. traceFinalGather(ShadingState previous, Ray r, int i)
ShadingState
ShadingState. traceFinalGather(Ray r, int i)
Trace a final gather ray and return the intersection result as a new render stateMethods in org.sunflow.core with parameters of type ShadingState Modifier and Type Method Description void
ShadingCache. add(ShadingState state, Shader shader, Color c)
(package private) static ShadingState
ShadingState. createDiffuseBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createFinalGatherState(ShadingState state, Ray r, int i)
(package private) static ShadingState
ShadingState. createGlossyBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createReflectionBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createRefractionBounceState(ShadingState previous, Ray r, int i)
(package private) static ShadingState
ShadingState. createShadowState(ShadingState previous, Ray r)
Color
GIEngine. getGlobalRadiance(ShadingState state)
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).(package private) Color
LightServer. getGlobalRadiance(ShadingState state)
Color
GIEngine. getIrradiance(ShadingState state, Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.(package private) Color
LightServer. getIrradiance(ShadingState state, Color diffuseReflectance)
Color
AlphaShader. getOpacity(ShadingState state)
private Shader
LightServer. getPhotonShader(ShadingState state)
Color
Shader. getRadiance(ShadingState state)
Gets the radiance for a specified rendering state.void
CausticPhotonMapInterface. getSamples(ShadingState state)
Retrieve caustic photons at the specified shading location and add them as diffuse light samples.void
LightSource. getSamples(ShadingState state)
Samples the light source to compute direct illumination.private Shader
LightServer. getShader(ShadingState state)
(package private) void
LightServer. initCausticSamples(ShadingState state)
(package private) void
LightServer. initLightSamples(ShadingState state)
Color
ShadingCache. lookup(ShadingState state, Shader shader)
void
Modifier. modify(ShadingState state)
Modify the shading state for the point to be shaded.(package private) void
Geometry. prepareShadingState(ShadingState state)
void
Instance. prepareShadingState(ShadingState state)
Prepare the shading state for shader invocation.void
InstanceList. prepareShadingState(ShadingState state)
void
PrimitiveList. prepareShadingState(ShadingState state)
Prepare the specifiedShadingState
by setting all of its internal parameters.void
Shader. scatterPhoton(ShadingState state, Color power)
Scatter a photon with the specied power.(package private) void
LightServer. shadeBakeResult(ShadingState state)
(package private) Color
LightServer. shadeHit(ShadingState state)
(package private) void
LightServer. shadePhoton(ShadingState state, Color power)
void
PhotonStore. store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.(package private) void
LightServer. traceDiffusePhoton(ShadingState previous, Ray r, Color power)
(package private) ShadingState
LightServer. traceFinalGather(ShadingState previous, Ray r, int i)
(package private) Color
LightServer. traceGlossy(ShadingState previous, Ray r, int i)
(package private) Color
LightServer. traceReflection(ShadingState previous, Ray r, int i)
(package private) void
LightServer. traceReflectionPhoton(ShadingState previous, Ray r, Color power)
(package private) Color
LightServer. traceRefraction(ShadingState previous, Ray r, int i)
(package private) void
LightServer. traceRefractionPhoton(ShadingState previous, Ray r, Color power)
void
LightSample. traceShadow(ShadingState state)
Trace the shadow ray, attenuating the sample's color by the opacity of intersected objects.(package private) Color
LightServer. traceShadow(Ray r, ShadingState previous)
Constructors in org.sunflow.core with parameters of type ShadingState Constructor Description ShadingState(ShadingState previous, IntersectionState istate, Ray r, int i, int d)
-
Uses of ShadingState in org.sunflow.core.gi
Methods in org.sunflow.core.gi with parameters of type ShadingState Modifier and Type Method Description Color
AmbientOcclusionGIEngine. getGlobalRadiance(ShadingState state)
Color
FakeGIEngine. getGlobalRadiance(ShadingState state)
Color
InstantGI. getGlobalRadiance(ShadingState state)
Color
IrradianceCacheGIEngine. getGlobalRadiance(ShadingState state)
Color
PathTracingGIEngine. getGlobalRadiance(ShadingState state)
Color
AmbientOcclusionGIEngine. getIrradiance(ShadingState state, Color diffuseReflectance)
Color
FakeGIEngine. getIrradiance(ShadingState state, Color diffuseReflectance)
Color
InstantGI. getIrradiance(ShadingState state, Color diffuseReflectance)
Color
IrradianceCacheGIEngine. getIrradiance(ShadingState state, Color diffuseReflectance)
Color
PathTracingGIEngine. getIrradiance(ShadingState state, Color diffuseReflectance)
void
InstantGI.PointLightStore. store(ShadingState state, Vector3 dir, Color power, Color diffuse)
-
Uses of ShadingState in org.sunflow.core.light
Methods in org.sunflow.core.light with parameters of type ShadingState Modifier and Type Method Description Color
ImageBasedLight. getRadiance(ShadingState state)
Color
SphereLight. getRadiance(ShadingState state)
Color
SunSkyLight. getRadiance(ShadingState state)
Color
TriangleMeshLight. getRadiance(ShadingState state)
void
DirectionalSpotlight. getSamples(ShadingState state)
void
ImageBasedLight. getSamples(ShadingState state)
void
PointLight. getSamples(ShadingState state)
void
SphereLight. getSamples(ShadingState state)
void
SunSkyLight. getSamples(ShadingState state)
void
TriangleMeshLight. getSamples(ShadingState state)
boolean
SphereLight. isVisible(ShadingState state)
void
ImageBasedLight. prepareShadingState(ShadingState state)
void
SunSkyLight. prepareShadingState(ShadingState state)
void
ImageBasedLight. scatterPhoton(ShadingState state, Color power)
void
SphereLight. scatterPhoton(ShadingState state, Color power)
void
SunSkyLight. scatterPhoton(ShadingState state, Color power)
void
TriangleMeshLight. scatterPhoton(ShadingState state, Color power)
-
Uses of ShadingState in org.sunflow.core.modifiers
Methods in org.sunflow.core.modifiers with parameters of type ShadingState Modifier and Type Method Description void
BumpMappingModifier. modify(ShadingState state)
void
NormalMapModifier. modify(ShadingState state)
void
PerlinModifier. modify(ShadingState state)
-
Uses of ShadingState in org.sunflow.core.photonmap
Methods in org.sunflow.core.photonmap with parameters of type ShadingState Modifier and Type Method Description void
CausticPhotonMap. getSamples(ShadingState state)
void
CausticPhotonMap. store(ShadingState state, Vector3 dir, Color power, Color diffuse)
void
GlobalPhotonMap. store(ShadingState state, Vector3 dir, Color power, Color diffuse)
void
GridPhotonMap. store(ShadingState state, Vector3 dir, Color power, Color diffuse)
-
Uses of ShadingState in org.sunflow.core.primitive
-
Uses of ShadingState in org.sunflow.core.renderer
Methods in org.sunflow.core.renderer with parameters of type ShadingState Modifier and Type Method Description (package private) void
BucketRenderer.ImageSample. add(ShadingState state)
(package private) void
BucketRenderer.ImageSample. set(ShadingState state)
-
Uses of ShadingState in org.sunflow.core.shader
Methods in org.sunflow.core.shader with parameters of type ShadingState Modifier and Type Method Description private float
AlphaDiffuseShader. getAlpha(ShadingState state)
private float
AlphaShinyPhong. getAlpha(ShadingState state)
private float
AlphaTexturedDiffuse. getAlpha(ShadingState state)
private float
AlphaTexturedPhong. getAlpha(ShadingState state)
Color
AmbientOcclusionShader. getBrightColor(ShadingState state)
Color
TexturedAmbientOcclusionShader. getBrightColor(ShadingState state)
Color
AlphaTexturedShinyPhong. getDiffuse(ShadingState state)
protected Color
AnisotropicWardShader. getDiffuse(ShadingState state)
Color
DiffuseShader. getDiffuse(ShadingState state)
protected Color
PhongShader. getDiffuse(ShadingState state)
Color
ShinyDiffuseShader. getDiffuse(ShadingState state)
Color
TexturedConstantShader. getDiffuse(ShadingState state)
Color
TexturedDiffuseShader. getDiffuse(ShadingState state)
Color
TexturedPhongShader. getDiffuse(ShadingState state)
Color
TexturedShinyDiffuseShader. getDiffuse(ShadingState state)
Color
TexturedShinyPhongShader. getDiffuse(ShadingState state)
Color
TexturedWardShader. getDiffuse(ShadingState state)
Color
UberShader. getDiffuse(ShadingState state)
Color
WireframeShader. getFillColor(ShadingState state)
Color
WireframeShader. getLineColor(ShadingState state)
Color
AlphaDiffuseShader. getOpacity(ShadingState state)
Color
AlphaPhongShader. getOpacity(ShadingState state)
Color
AlphaShinyPhong. getOpacity(ShadingState state)
Color
AlphaTexturedDiffuse. getOpacity(ShadingState state)
Color
AlphaTexturedPhong. getOpacity(ShadingState state)
Color
AlphaDiffuseShader. getRadiance(ShadingState state)
Color
AlphaPhongShader. getRadiance(ShadingState state)
Color
AlphaShinyPhong. getRadiance(ShadingState state)
Color
AlphaTexturedDiffuse. getRadiance(ShadingState state)
Color
AlphaTexturedPhong. getRadiance(ShadingState state)
Color
AmbientOcclusionShader. getRadiance(ShadingState state)
Color
AnisotropicWardShader. getRadiance(ShadingState state)
Color
ConstantShader. getRadiance(ShadingState state)
Color
DiffuseShader. getRadiance(ShadingState state)
Color
GlassShader. getRadiance(ShadingState state)
Color
IDShader. getRadiance(ShadingState state)
Color
MirrorShader. getRadiance(ShadingState state)
Color
NormalShader. getRadiance(ShadingState state)
Color
PhongShader. getRadiance(ShadingState state)
Color
PrimIDShader. getRadiance(ShadingState state)
Color
QuickGrayShader. getRadiance(ShadingState state)
Color
ShinyDiffuseShader. getRadiance(ShadingState state)
Color
ShinyPhongShader. getRadiance(ShadingState state)
Color
SimpleShader. getRadiance(ShadingState state)
Color
TexturedConstantShader. getRadiance(ShadingState state)
Color
TransparentShinyPhong. getRadiance(ShadingState state)
Color
UberShader. getRadiance(ShadingState state)
Color
UVShader. getRadiance(ShadingState state)
Color
ViewCausticsShader. getRadiance(ShadingState state)
Color
ViewGlobalPhotonsShader. getRadiance(ShadingState state)
Color
ViewIrradianceShader. getRadiance(ShadingState state)
Color
WireframeShader. getRadiance(ShadingState state)
Color
UberShader. getSpecular(ShadingState state)
void
AmbientOcclusionShader. scatterPhoton(ShadingState state, Color power)
void
AnisotropicWardShader. scatterPhoton(ShadingState state, Color power)
void
ConstantShader. scatterPhoton(ShadingState state, Color power)
void
DiffuseShader. scatterPhoton(ShadingState state, Color power)
void
GlassShader. scatterPhoton(ShadingState state, Color power)
void
IDShader. scatterPhoton(ShadingState state, Color power)
void
MirrorShader. scatterPhoton(ShadingState state, Color power)
void
NormalShader. scatterPhoton(ShadingState state, Color power)
void
PhongShader. scatterPhoton(ShadingState state, Color power)
void
PrimIDShader. scatterPhoton(ShadingState state, Color power)
void
QuickGrayShader. scatterPhoton(ShadingState state, Color power)
void
ShinyDiffuseShader. scatterPhoton(ShadingState state, Color power)
void
SimpleShader. scatterPhoton(ShadingState state, Color power)
void
UberShader. scatterPhoton(ShadingState state, Color power)
void
UVShader. scatterPhoton(ShadingState state, Color power)
void
ViewCausticsShader. scatterPhoton(ShadingState state, Color power)
void
ViewGlobalPhotonsShader. scatterPhoton(ShadingState state, Color power)
void
ViewIrradianceShader. scatterPhoton(ShadingState state, Color power)
void
WireframeShader. scatterPhoton(ShadingState state, Color power)
-