|
ivec3 | baseGridCoord (in DDGIVolume ddgiVolume, Point3 X) |
|
int | baseProbeIndex (in DDGIVolume ddgiVolume, Point3 X) |
| Returns the index of the probe at the floor along each dimension. More...
|
|
float | distanceSquared (Point2 v0, Point2 v1) |
|
Color3 | gridCoordToColor (ivec3 gridCoord) |
| Matches code in LightFieldModel::debugDraw() More...
|
|
Point3 | gridCoordToPosition (in DDGIVolume L, ivec3 c) |
|
Point3 | gridCoordToPositionNoOffset (in DDGIVolume L, ivec3 c) |
|
int | gridCoordToProbeIndex (in DDGIVolume ddgiVolume, in Point3 probeCoords) |
|
More...
|
|
int | idot (ivec3 a, ivec3 b) |
| GLSL's dot on ivec3 returns a float. More...
|
|
int | nearestProbeIndex (in DDGIVolume L, Point3 X, out Point3 probeCoords) |
| probeCoords Coordinates of the probe, computed as part of the process. More...
|
|
Color3 | probeIndexToColor (in DDGIVolume L, int index) |
|
ivec3 | probeIndexToGridCoord (in DDGIVolume L, int index) |
|
Point3 | probeLocation (in DDGIVolume L, int index) |
|
Point2 | probeTextureCoordFromDirection (Vector3 dir, ivec3 probeGridCoord, const in bool useIrradiance, DDGIVolume ddgiVolume) |
|
Vector4 | readProbeOffset (in DDGIVolume L, ivec2 texelCoord) |
|
int | relativeProbeIndex (in DDGIVolume ddgiVolume, int baseProbeIndex, int relativeIndex) |
|
Color4 | sampleOneDDGIVolume (DDGIVolume ddgiVolume, Point3 wsPosition, Vector3 offsetPos, Vector3 sampleDirection, Point3 cameraPos, bool skippable) |
| Result.rgb = Irradiance3 Result.a = weight based on wsPosition vs. More...
|
|
void | writeProbeOffset (in DDGIVolume L, in ivec2 texelCoord, in vec4 offsetAndFlags) |
|
int glsl::DDGIVolume_glsl::relativeProbeIndex |
( |
in DDGIVolume |
ddgiVolume, |
|
|
int |
baseProbeIndex, |
|
|
int |
relativeIndex |
|
) |
| |
|
inline |
- Parameters
-
baseProbeIndex | Index into L.radianceProbeGrid's TEXTURE_2D_ARRAY. This is the probe at the floor of the current ray sampling position. |
relativeIndex | on [0, 7]. This is used as a set of three 1-bit offsets |
Returns a probe index into L.radianceProbeGrid. It may be the same index as baseProbeIndex.
This will wrap in crazy ways when the camera is outside of the bounding box of the probes...but that's ok. If that case arises, then the trace is likely to be poor quality anyway. Regardless, this function will still return the index of some valid probe, and that probe can either be used or fail because it does not have visibility to the location desired.
- See also
- nextCycleIndex, baseProbeIndex