|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MicrofacetDistribution
Abstract interface represents microfacet distribution. Microfacets help to model rough surfaces as a heightfield with statistically generated faces.
Method Summary | |
---|---|
double |
D(double[] half)
Return a microfacet distribution term. |
double |
pdf(double[] in,
double[] out)
Return the probability density function. |
double |
sample(MicroFacet mf,
double[] in,
double u,
double v,
double[] out,
double[] brdf)
Sample the given microfacet distribution. |
Method Detail |
---|
double sample(MicroFacet mf, double[] in, double u, double v, double[] out, double[] brdf)
mf
- The MicroFacet
(point on surface of some solid).in
- Input direction (should look from the hit point).u
- Random uniform number.v
- Random uniform numbers.out
- Output direction in world coordinates.brdf
- Color definition - double[C]
array
(C
can be either 1 /for monochrome computing/, 3 /for RGB
color system/ or greater /for more complex spectral color sampling/).
double pdf(double[] in, double[] out)
in
- Input direction in local coordinates.out
- Output direction in local coordinates.double D(double[] half)
half
- Half-vector in local coordinates.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |