|
|
|
|
|
|
// sample the texture |
|
|
|
uint texIdx, sampIdx; |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
UnpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, texIdx, sampIdx ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
float3 posTC = EvalShadow_GetTexcoords( sd, positionWS ); |
|
|
|
// sample the texture |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, slice ); |
|
|
|
UnpackShadowmapId( sd.id, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, tex, compSamp ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
// sample the texture |
|
|
|
uint texIdx, sampIdx; |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
UnpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, texIdx, sampIdx ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
float3 posTC = EvalShadow_GetTexcoords( sd, positionWS ); |
|
|
|
// sample the texture |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, slice ); |
|
|
|
UnpackShadowmapId( sd.id, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, tex, compSamp ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
// sample the texture |
|
|
|
uint texIdx, sampIdx; |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
UnpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, texIdx, sampIdx ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
float3 posTC = EvalShadow_GetTexcoords( sd, positionWS ); |
|
|
|
// sample the texture |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, slice ); |
|
|
|
UnpackShadowmapId( sd.id, slice ); |
|
|
|
return SampleShadow_PCF_1tap( shadowContext, posTC, slice, tex, compSamp ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
// sample the texture |
|
|
|
uint texIdx, sampIdx; |
|
|
|
float slice; |
|
|
|
unpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
UnpackShadowmapId( sd.id, texIdx, sampIdx, slice ); |
|
|
|
|
|
|
|
return SampleShadow_PCF_9tap_Adaptive( shadowContext, sd.texelSizeRcp, posTC, slice, texIdx, sampIdx ); |
|
|
|
} |
|
|
|
|
|
|
float3 posTC = EvalShadow_GetTexcoords( sd, positionWS ); |
|
|
|
// sample the texture |
|
|
|
float slice; |
|
|
|
unpackShadowmapId(sd.id, slice); |
|
|
|
UnpackShadowmapId(sd.id, slice); |
|
|
|
|
|
|
|
return SampleShadow_PCF_9tap_Adaptive( shadowContext, sd.texelSizeRcp, posTC, slice, tex, compSamp ); |
|
|
|
} |